Frédéric Delanoy : cmd/tests: Additional tests for variable delayed expansion.
Alexandre Julliard
julliard at winehq.org
Tue Aug 2 14:18:28 CDT 2011
Module: wine
Branch: master
Commit: 0cfe9fa6a5e4ebb95394cd5b21a6d7a2bd9009b0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0cfe9fa6a5e4ebb95394cd5b21a6d7a2bd9009b0
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Tue Aug 2 10:10:52 2011 +0200
cmd/tests: Additional tests for variable delayed expansion.
---
programs/cmd/tests/test_builtins.cmd | 9 +++++++++
programs/cmd/tests/test_builtins.cmd.exp | 5 +++++
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 3f8c72e..eb79fb2 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -207,6 +207,15 @@ set FOO=foo
echo %FOO%
echo !FOO!
set FOO=
+echo ...using /V cmd flag
+echo @echo off> tmp.cmd
+echo set FOO=foo>> tmp.cmd
+echo echo %%FOO%%>> tmp.cmd
+echo echo !FOO!>> tmp.cmd
+echo set FOO=>> tmp.cmd
+cmd /V:ON /C tmp.cmd
+cmd /V:OfF /C tmp.cmd
+del tmp.cmd
echo ------------ Testing conditional execution --------------
echo ...unconditional ^&
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index b754faf..463b225 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -161,6 +161,11 @@ foo
0 at or_broken@1
foo
!FOO!
+...using /V cmd flag
+foo
+ at todo_wine@foo at or_broken@!FOO!
+foo
+!FOO!
------------ Testing conditional execution --------------
@todo_wine at ...unconditional &
foo1
More information about the wine-cvs
mailing list