cmd/tests: Use resynchronization points to better deal with two IF statements tests.

This commit is contained in:
Francois Gouget 2011-11-30 13:05:29 +01:00 committed by Alexandre Julliard
parent e849691fcc
commit 66db270d22
2 changed files with 7 additions and 3 deletions

View file

@ -136,10 +136,12 @@ if exist foo (type foo) else echo not supported
echo --- redirections within IF statements
if 1==1 echo foo1>bar
type bar & del bar
echo -----
if 1==1 (echo foo2>bar) else echo baz2>bar
type bar & del bar
if 1==1 (echo foo3) else echo baz3>bar
type bar || echo file does not exist, ok
echo -----
if 1==1 (echo foo4>bar) else echo baz4>bar
type bar & del bar
if 1==0 (echo foo5>bar) else echo baz5>bar

View file

@ -163,9 +163,11 @@ food21
@todo_wine@foo@or_broken@not supported
--- redirections within IF statements
@todo_wine@foo1
@todo_wine@foo2
@todo_wine@foo3
file does not exist, ok
-----
foo2
foo3
@todo_wine@file does not exist, ok
@todo_wine@-----
foo4
baz5
baz6@space@