cmd/tests: Additional tests for variable delayed expansion
Frédéric Delanoy
frederic.delanoy at gmail.com
Tue Aug 2 03:10:52 CDT 2011
---
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
--
1.7.6
More information about the wine-patches
mailing list