Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cf826fe0
Commit
cf826fe0
authored
Sep 14, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Sep 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add RENAME tests.
parent
73a4deb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+31
-1
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+11
-1
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
cf826fe0
...
@@ -879,7 +879,37 @@ rmdir "foo:"
...
@@ -879,7 +879,37 @@ rmdir "foo:"
cd ..
cd ..
rmdir "foo bar"
rmdir "foo bar"
echo ----------- Testing mkdir -----------
echo ------------ Testing rename ------------
mkdir foobar & cd foobar
echo ... ren and rename are synonymous ...
echo > foo
rename foo bar
if exist foo echo foo should be renamed!
if exist bar echo foo renamed to bar
ren bar foo
if exist bar echo bar should be renamed!
if exist foo echo bar renamed to foo
echo ... name collision ...
echo foo>foo
echo bar>bar
ren foo bar 2> nul
type foo
type bar
rem no-op
ren foo foo
mkdir baz
ren foo baz\abc
echo ... rename in other directory ...
if not exist baz\abc (
echo rename impossible in other directory
if exist foo echo original file still present
) else (
echo shouldn't rename in other directory!
if not exist foo echo original file not present anymore
)
cd .. & rd /s/q foobar
echo ------------ Testing mkdir ------------
call :setError 0
call :setError 0
echo ... md and mkdir are synonymous ...
echo ... md and mkdir are synonymous ...
mkdir foobar
mkdir foobar
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
cf826fe0
...
@@ -594,7 +594,17 @@ r.test not found after delete, good
...
@@ -594,7 +594,17 @@ r.test not found after delete, good
del /q * succeeded on file1
del /q * succeeded on file1
del /q * succeeded on file2.dat
del /q * succeeded on file2.dat
------------ Testing del /s --------------
------------ Testing del /s --------------
----------- Testing mkdir -----------
------------ Testing rename ------------
... ren and rename are synonymous ...
foo renamed to bar
bar renamed to foo
... name collision ...
foo
bar
... rename in other directory ...
@todo_wine@rename impossible in other directory
@todo_wine@original file still present
------------ Testing mkdir ------------
... md and mkdir are synonymous ...
... md and mkdir are synonymous ...
0
0
0
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment