diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index e4bce29f6da..2062a9d31d9 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 2d797938f46..d939ec505ed 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