cmd/tests: Additional tests for variable delayed expansion.

This commit is contained in:
Frédéric Delanoy 2011-08-02 10:10:52 +02:00 committed by Alexandre Julliard
parent 0b5dcbafea
commit 0cfe9fa6a5
2 changed files with 14 additions and 0 deletions

View file

@ -207,6 +207,15 @@ set FOO=foo
echo %FOO% echo %FOO%
echo !FOO! echo !FOO!
set 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 ------------ Testing conditional execution --------------
echo ...unconditional ^& echo ...unconditional ^&

View file

@ -161,6 +161,11 @@ foo
0@or_broken@1 0@or_broken@1
foo foo
!FOO! !FOO!
...using /V cmd flag
foo
@todo_wine@foo@or_broken@!FOO!
foo
!FOO!
------------ Testing conditional execution -------------- ------------ Testing conditional execution --------------
@todo_wine@...unconditional & @todo_wine@...unconditional &
foo1 foo1