Frédéric Delanoy : cmd/tests: Add tests for || on failure conditional execution.
Module: wine Branch: master Commit: 3d9245830f1739781797cd07bb52dc159715897a URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d9245830f1739781797cd07bb... Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Sat Jul 23 15:34:22 2011 +0200 cmd/tests: Add tests for || on failure conditional execution. --- programs/cmd/tests/test_builtins.cmd | 7 +++++++ programs/cmd/tests/test_builtins.cmd.exp | 3 +++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index a4b4594..d94c3e7 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -113,6 +113,13 @@ if exist foo3 ( del foo3 ) else echo foo3 not created echo bar4 && echo foo4 +echo ...on failure conditional ^|^| +call :setError 789 || echo foo5 +echo foo6 || echo bar6 > bar6 +if exist bar6 ( + echo bar6 created + del bar6 +) 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 de98364..6e842b8 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -100,6 +100,9 @@ foo2 @todo_wine(a)foo3 not created bar4(a)space@ foo4 +(a)todo_wine@...on failure conditional || +(a)todo_wine@foo5 +(a)todo_wine@foo6(a)space@ ------------ Testing type ------------ @pwd@>type foobaz(a)space@
participants (1)
-
Alexandre Julliard