cmd/tests: Add tests for && on success conditional execution.

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

View file

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

View file

@ -96,6 +96,10 @@ foo1
bar2@space@
foo2
@todo_wine@foobar deleted
@todo_wine@...on success conditional &&
@todo_wine@foo3 not created
bar4@space@
foo4
------------ Testing type ------------
@pwd@>type foobaz@space@