cmd/tests: Test that the if command is not influenced by a previous one.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47770
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48738
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Bernhard Übelacker 2020-05-03 17:05:25 +02:00 committed by Alexandre Julliard
parent b1e91a36a7
commit c358de84c8
2 changed files with 9 additions and 0 deletions

View File

@ -1013,6 +1013,13 @@ if /i not (a)==(b) (
) else (
echo comparison operators surrounded by brackets seem to be broken
)
if defined windir echo windir is defined
if not defined windir echo windir is defined
if not exist %windir% (
echo windir does not exist
) else (
echo windir does exist
)
echo --- case sensitivity with and without /i option
if bar==BAR echo if does not default to case sensitivity
if not bar==BAR echo if seems to default to case sensitivity

View File

@ -699,6 +699,8 @@ comparison operators surrounded by brackets seem to work
comparison operators surrounded by brackets seem to work
comparison operators surrounded by brackets seem to work
comparison operators surrounded by brackets seem to work
windir is defined
windir does exist
--- case sensitivity with and without /i option
if seems to default to case sensitivity
if /i seems to work