From 9e57a09bb5bad2fc830aa5a866ec8f7ab9f1dca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Sun, 24 Jul 2011 22:11:35 +0200 Subject: [PATCH] cmd/tests: Test multiple params mkdir. --- programs/cmd/tests/test_builtins.cmd | 9 +++++++++ programs/cmd/tests/test_builtins.cmd.exp | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index 8e2539c3daf..e4bce29f6da 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -367,6 +367,15 @@ if not exist foo ( cd .. rmdir foo ) +rem multiples directories at once +mkdir foobaz & cd foobaz +mkdir foo bar\baz foobar +if exist foo (echo foo created) else echo foo not created! +if exist bar (echo bar created) else echo bar not created! +if exist foobar (echo foobar created) else echo foobar not created! +if exist bar\baz (echo bar\baz created) else echo bar\baz not created! +cd .. +rd /s/q foobaz echo ----------- Testing rmdir ----------- call :setError 0 diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp index 267f83e60eb..2d797938f46 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -192,6 +192,10 @@ dir created @todo_wine@ok, foo created @todo_wine@1 @todo_wine@ok, foo\bar created +foo created +@todo_wine@bar created +@todo_wine@foobar created +@todo_wine@bar\baz created ----------- Testing rmdir ----------- 0 dir removed