mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
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:
parent
a19c871291
commit
9aee47f7f6
|
@ -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=
|
||||
|
||||
|
|
|
@ -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 ----------
|
||||
|
|
Loading…
Reference in a new issue