cmd/tests: Add tests for || on failure conditional execution.

This commit is contained in:
Frédéric Delanoy 2011-07-23 15:34:22 +02:00 committed by Alexandre Julliard
parent 73413693d6
commit 3d9245830f
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -100,6 +100,9 @@ foo2
@todo_wine@foo3 not created
bar4@space@
foo4
@todo_wine@...on failure conditional ||
@todo_wine@foo5
@todo_wine@foo6@space@
------------ Testing type ------------
@pwd@>type foobaz@space@