mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +00:00
cmd/tests: Additional tests for variable delayed expansion.
This commit is contained in:
parent
0b5dcbafea
commit
0cfe9fa6a5
2 changed files with 14 additions and 0 deletions
|
@ -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 ^&
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue