reactos/modules/rostests/win32/cmd/test_builtins.cmd.exp
Hermès Bélusca-Maïto 4c9d322c68
[CMD_ROSTEST] Add tests for EXIT and CMD returned exit code values.
CORE-10495 CORE-13672

See also commits 8cf11060 (r40474), 26ff2c8e and 7bd33ac4.

More information can be also found at:
https://stackoverflow.com/a/34987886/13530036
and
https://stackoverflow.com/a/34937706/13530036
2020-08-19 20:36:02 +02:00

89 lines
1,023 B
Plaintext

------------ Testing FOR loop ------------
--- Multiple lines
A
B
C
--- Lines and spaces
D
E
F
--- Multiple lines and commas
G
H
I
--- Multiple lines and %I
%I
%I
%I
--- Multiple lines and %j
%j
%j
%j
---------- Testing AND operator ----------
TRUE AND condition
---------- Testing OR operator -----------
FALSE OR condition
---------- Testing CMD exit codes and errorlevels ----------
--- CMD /C Direct EXIT call
OK
OK
--- CMD /C Direct EXIT /B call
OK
OK
--- CMD /C Non-existing command
OK
OK
OK
OK
--- CMD /C RMDIR (no ERRORLEVEL set)
OK
OK
OK
OK
--- CMD /C DIR (sets ERRORLEVEL) - With failure
OK
OK
OK
OK
OK
OK
OK
OK
--- CMD /C DIR (sets ERRORLEVEL) - With success
OK
OK
OK
OK
OK
OK
--- CALL Batch Non-existing command
OK
OK
--- CALL Batch RMDIR (no ERRORLEVEL set)
OK
OK
--- CALL Batch RMDIR with || (sets ERRORLEVEL)
OK
OK
OK
OK
--- CALL Batch DIR (sets ERRORLEVEL) - With failure
OK
OK
OK
OK
OK
OK
OK
OK
--- CALL Batch DIR (sets ERRORLEVEL) - With success
OK
OK
OK
OK
OK
OK
OK
OK
--------- Finished --------------