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>
This commit is contained in:
parent
b1e91a36a7
commit
c358de84c8
|
@ -1013,6 +1013,13 @@ if /i not (a)==(b) (
|
||||||
) else (
|
) else (
|
||||||
echo comparison operators surrounded by brackets seem to be broken
|
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
|
echo --- case sensitivity with and without /i option
|
||||||
if bar==BAR echo if does not default to case sensitivity
|
if bar==BAR echo if does not default to case sensitivity
|
||||||
if not bar==BAR echo if seems to default to case sensitivity
|
if not bar==BAR echo if seems to default to case sensitivity
|
||||||
|
|
|
@ -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
|
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
|
--- case sensitivity with and without /i option
|
||||||
if seems to default to case sensitivity
|
if seems to default to case sensitivity
|
||||||
if /i seems to work
|
if /i seems to work
|
||||||
|
|
Loading…
Reference in New Issue