[2/3] cmd/tests: Add tests for && on success conditional execution

Frédéric Delanoy frederic.delanoy at gmail.com
Sat Jul 23 08:34:21 CDT 2011


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

diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 88c7c75..a4b4594 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -106,6 +106,13 @@ if exist foobazbar (
     cd ..
     rd /s/q foobar
 ) else echo foobar deleted
+echo ...on success conditional ^&^&
+call :setError 456 && echo foo3 > foo3
+if exist foo3 (
+    echo foo3 created
+    del foo3
+) else echo foo3 not created
+echo bar4 && echo foo4
 
 echo ------------ Testing type ------------
 echo bar> foobaz
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index 1c56629..de98364 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -96,6 +96,10 @@ foo1
 bar2 at space@
 foo2
 @todo_wine at foobar deleted
+ at todo_wine@...on success conditional &&
+ at todo_wine@foo3 not created
+bar4 at space@
+foo4
 ------------ Testing type ------------
 
 @pwd@>type foobaz at space@
-- 
1.7.6




More information about the wine-patches mailing list