Frédéric Delanoy : cmd/tests: Test multiple params rmdir.

Alexandre Julliard julliard at winehq.org
Tue Jul 26 11:37:53 CDT 2011


Module: wine
Branch: master
Commit: 414bd437a9ae9feb557c654a650f4deddbc8e54a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=414bd437a9ae9feb557c654a650f4deddbc8e54a

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Sun Jul 24 22:11:36 2011 +0200

cmd/tests: Test multiple params rmdir.

---

 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 e4bce29..2062a9d 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -430,6 +430,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 2d79793..d939ec5 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -210,6 +210,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




More information about the wine-cvs mailing list