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

Alexandre Julliard julliard at winehq.org
Wed Nov 30 14:19:21 CST 2011


Module: wine
Branch: master
Commit: 66db270d227dd58050a4681b33451d9cec6eeee1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=66db270d227dd58050a4681b33451d9cec6eeee1

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed Nov 30 13:05:29 2011 +0100

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

---

 programs/cmd/tests/test_builtins.cmd     |    2 ++
 programs/cmd/tests/test_builtins.cmd.exp |    8 +++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 40a94e6..f03a05e 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -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
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index 069bb0b..a005fc2 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -163,9 +163,11 @@ food21
 @todo_wine at foo@or_broken at not supported
 --- redirections within IF statements
 @todo_wine at foo1
- at todo_wine@foo2
- at todo_wine@foo3
-file does not exist, ok
+-----
+foo2
+foo3
+ at todo_wine@file does not exist, ok
+ at todo_wine@-----
 foo4
 baz5
 baz6 at space@




More information about the wine-cvs mailing list