cmd/tests: Add tests for PATH separator.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55097
Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com>
This commit is contained in:
Liam Middlebrook 2023-06-20 10:48:45 -07:00 committed by Alexandre Julliard
parent a19c871291
commit 9aee47f7f6
2 changed files with 32 additions and 0 deletions

View file

@ -3294,6 +3294,29 @@ path try2
path
path=try3
path
echo ------------ Testing PATH Evaluate ------------
mkdir folder
echo echo I'm here! > folder\sub1.bat
echo Test normal PATH usage
set path=%cd%\folder
call sub1.bat
echo Test PATH usage with leading semicolon
set path=;%cd%\folder
call sub1.bat
echo Test PATH usage with fallback path
set path=%cd%;%cd%\folder
call sub1.bat
echo Test PATH usage with double semicolon
set path=%cd%;;%cd%\folder
call sub1.bat
del folder\sub1.bat
rmdir folder
set path=%WINE_backup_path%
set WINE_backup_path=

View file

@ -1680,6 +1680,15 @@ Finished
PATH=original
PATH=try2
PATH=try3
------------ Testing PATH Evaluate ------------
Test normal PATH usage
I'm here!@space@
Test PATH usage with leading semicolon
I'm here!@space@
Test PATH usage with fallback path
I'm here!@space@
Test PATH usage with double semicolon
I'm here!@space@
------------ Testing start /W ------------
start /W seems to really wait
------------ Testing changing the drive letter ----------