mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 01:43:37 +00:00
cmd/tests: Add tests for directories RENAMEs.
This commit is contained in:
parent
699fb02d10
commit
1f5c0a6170
|
@ -899,6 +899,21 @@ rem no-op
|
|||
ren foo foo
|
||||
mkdir baz
|
||||
ren foo baz\abc
|
||||
echo ... rename directories ...
|
||||
mkdir rep1
|
||||
ren rep1 rep2
|
||||
if not exist rep1 (
|
||||
if exist rep2 (
|
||||
echo dir renamed
|
||||
)
|
||||
)
|
||||
attrib +r rep2
|
||||
ren rep2 rep1
|
||||
if not exist rep2 (
|
||||
if exist rep1 (
|
||||
echo read-only dir renamed
|
||||
)
|
||||
)
|
||||
echo ... rename in other directory ...
|
||||
if not exist baz\abc (
|
||||
echo rename impossible in other directory
|
||||
|
|
|
@ -601,6 +601,9 @@ bar renamed to foo
|
|||
... name collision ...
|
||||
foo
|
||||
bar
|
||||
... rename directories ...
|
||||
dir renamed
|
||||
read-only dir renamed
|
||||
... rename in other directory ...
|
||||
@todo_wine@rename impossible in other directory
|
||||
@todo_wine@original file still present
|
||||
|
|
Loading…
Reference in a new issue