Frédéric Delanoy : cmd/tests: Add tests for && on success conditional execution.
Alexandre Julliard
julliard at winehq.org
Mon Jul 25 11:43:13 CDT 2011
Module: wine
Branch: master
Commit: 73413693d6e964f33b4fdf4dbfb1686e969ea39a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=73413693d6e964f33b4fdf4dbfb1686e969ea39a
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Sat Jul 23 15:34:21 2011 +0200
cmd/tests: Add tests for && on success conditional execution.
---
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@
More information about the wine-cvs
mailing list