cmd/tests: Show that read-only files are RENAMEable.
This commit is contained in:
parent
1f5c0a6170
commit
d5523fcd80
|
@ -899,6 +899,17 @@ rem no-op
|
|||
ren foo foo
|
||||
mkdir baz
|
||||
ren foo baz\abc
|
||||
echo ... rename read-only files ...
|
||||
echo > file1
|
||||
attrib +r file1
|
||||
ren file1 file2
|
||||
if not exist file1 (
|
||||
if exist file2 (
|
||||
echo read-only file renamed
|
||||
)
|
||||
) else (
|
||||
echo read-only file not renamed!
|
||||
)
|
||||
echo ... rename directories ...
|
||||
mkdir rep1
|
||||
ren rep1 rep2
|
||||
|
|
|
@ -601,6 +601,8 @@ bar renamed to foo
|
|||
... name collision ...
|
||||
foo
|
||||
bar
|
||||
... rename read-only files ...
|
||||
@todo_wine@read-only file renamed
|
||||
... rename directories ...
|
||||
dir renamed
|
||||
read-only dir renamed
|
||||
|
|
Loading…
Reference in New Issue