Commit d5523fcd authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

cmd/tests: Show that read-only files are RENAMEable.

parent 1f5c0a61
...@@ -899,6 +899,17 @@ rem no-op ...@@ -899,6 +899,17 @@ rem no-op
ren foo foo ren foo foo
mkdir baz mkdir baz
ren foo baz\abc 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 ... echo ... rename directories ...
mkdir rep1 mkdir rep1
ren rep1 rep2 ren rep1 rep2
......
...@@ -601,6 +601,8 @@ bar renamed to foo ...@@ -601,6 +601,8 @@ bar renamed to foo
... name collision ... ... name collision ...
foo foo
bar bar
... rename read-only files ...
@todo_wine@read-only file renamed
... rename directories ... ... rename directories ...
dir renamed dir renamed
read-only dir renamed read-only dir renamed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment