[PATCH] cmd: added some expansion tests.
Yann Droneaud
yann at droneaud.fr
Mon Mar 8 15:53:36 CST 2010
Test automatic variables like %CD% %ERRORLEVEL%.
Test expansion of an unknown variable.
---
programs/cmd/tests/test_builtins.cmd | 3 +++
programs/cmd/tests/test_builtins.cmd.exp | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index ed2b75b..fcc714e 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -23,6 +23,9 @@ cd dummydir
echo %~dp0
cd ..
rmdir dummydir
+echo %CD%
+echo %ERRORLEVEL%
+echo %UNKNOWN%
echo ------------ Testing if/else --------------
echo if/else should work with blocks
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index 2c0e980..574701f 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -16,6 +16,9 @@ bar
~dp0 should be directory containing batch file
@pwd@\
@pwd@\
+ at pwd@
+0
+Echo is OFF
------------ Testing if/else --------------
if/else should work with blocks
if seems to work
--
1.6.2.5
More information about the wine-patches
mailing list