mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +00:00
cmd/tests: Additional CALL tests.
This commit is contained in:
parent
7fb790f8a7
commit
ce57ebe32d
2 changed files with 32 additions and 0 deletions
|
@ -542,6 +542,13 @@ rem External script
|
|||
echo echo foo %%1> foo.cmd
|
||||
call foo
|
||||
call foo.cmd 8
|
||||
echo echo %%1 %%2 > foo.cmd
|
||||
call foo.cmd foo
|
||||
call foo.cmd foo bar
|
||||
call foo.cmd foo ""
|
||||
call foo.cmd "" bar
|
||||
call foo.cmd foo ''
|
||||
call foo.cmd '' bar
|
||||
del foo.cmd
|
||||
rem Internal routines
|
||||
call :testRoutine :testRoutine
|
||||
|
@ -550,6 +557,19 @@ goto :endTestRoutine
|
|||
echo bar %1
|
||||
goto :eof
|
||||
:endTestRoutine
|
||||
|
||||
call :testRoutineArgs foo
|
||||
call :testRoutineArgs foo bar
|
||||
call :testRoutineArgs foo ""
|
||||
call :testRoutineArgs "" bar
|
||||
call :testRoutineArgs foo ''
|
||||
call :testRoutineArgs '' bar
|
||||
goto :endTestRoutineArgs
|
||||
:testRoutineArgs
|
||||
echo %1 %2
|
||||
goto :eof
|
||||
:endTestRoutineArgs
|
||||
|
||||
rem Should work for builtins...
|
||||
call mkdir foo
|
||||
echo %ErrorLevel%
|
||||
|
|
|
@ -288,7 +288,19 @@ bar\baz removed
|
|||
------------ Testing CALL --------------
|
||||
foo@space@
|
||||
@todo_wine@foo 8
|
||||
foo@space@@space@
|
||||
foo bar@space@
|
||||
@todo_wine@foo ""@space@
|
||||
@todo_wine@"" bar@space@
|
||||
foo ''@space@
|
||||
'' bar@space@
|
||||
bar :testRoutine
|
||||
foo@space@
|
||||
foo bar
|
||||
@todo_wine@foo ""
|
||||
@todo_wine@"" bar
|
||||
foo ''
|
||||
'' bar
|
||||
@todo_wine@0
|
||||
@todo_wine@foo created
|
||||
@todo_wine@Should expand foobaz
|
||||
|
|
Loading…
Reference in a new issue