cmd/tests: Test multiple params rmdir

Frédéric Delanoy frederic.delanoy at gmail.com
Sun Jul 24 15:11:36 CDT 2011


---
 programs/cmd/tests/test_builtins.cmd     |   12 ++++++++++++
 programs/cmd/tests/test_builtins.cmd.exp |    4 ++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 35b4b69..36b8e6f 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -369,6 +369,18 @@ if not exist foo (
     rd foo\bar
     rd foo
 )
+rem multiples directories at once
+mkdir foobaz & cd foobaz
+mkdir foo
+mkdir bar\baz
+mkdir foobar
+rd /s/q foo bar foobar
+if not exist foo (echo foo removed) else echo foo not removed!
+if not exist bar (echo bar removed) else echo bar not removed!
+if not exist foobar (echo foobar removed) else echo foobar not removed!
+if not exist bar\baz (echo bar\baz removed) else echo bar\baz not removed!
+cd ..
+rd /s/q foobaz
 
 echo ------------ Testing CALL --------------
 mkdir foobar & cd foobar
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index 5fd8e65..34716fd 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -178,6 +178,10 @@ non-empty dir not removed
 non-empty dir not removed
 recursive rmdir succeeded
 recursive rmdir succeeded
+foo removed
+bar removed
+foobar removed
+bar\baz removed
 ------------ Testing CALL --------------
 foo
 foo 8
-- 
1.7.6




More information about the wine-patches mailing list