Commit a28c7caf authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

cmd/tests: Test that ErrorLevel is set to 9009 when unknown commands are encountered.

parent 23cd306a
...@@ -331,6 +331,9 @@ if not exist foo ( ...@@ -331,6 +331,9 @@ if not exist foo (
) )
echo -----------Testing Errorlevel----------- echo -----------Testing Errorlevel-----------
rem WARNING: Do *not* add tests using ErrorLevel after this section
should_not_exist 2> nul > nul
echo %ErrorLevel%
rem nt 4.0 doesn't really support a way of setting errorlevel, so this is weak rem nt 4.0 doesn't really support a way of setting errorlevel, so this is weak
rem See http://www.robvanderwoude.com/exit.php rem See http://www.robvanderwoude.com/exit.php
call :setError 1 call :setError 1
......
...@@ -169,6 +169,7 @@ non-empty dir not removed ...@@ -169,6 +169,7 @@ non-empty dir not removed
recursive rmdir succeeded recursive rmdir succeeded
recursive rmdir succeeded recursive rmdir succeeded
-----------Testing Errorlevel----------- -----------Testing Errorlevel-----------
9009
1 1
errorlevel just right, good errorlevel just right, good
abc0def@or_broken@abc1def abc0def@or_broken@abc1def
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment