wscript: Properly handle CreateProcess failure.
This commit is contained in:
parent
e8e45b3454
commit
9f7da94a3d
|
@ -34,8 +34,8 @@
|
||||||
#define SET_EXPECT(func) \
|
#define SET_EXPECT(func) \
|
||||||
expect_ ## func = TRUE
|
expect_ ## func = TRUE
|
||||||
|
|
||||||
#define SET_CALLED(func) \
|
#define CLEAR_CALLED(func) \
|
||||||
called_ ## func = TRUE
|
expect_ ## func = called_ ## func = FALSE
|
||||||
|
|
||||||
#define CHECK_EXPECT2(func) \
|
#define CHECK_EXPECT2(func) \
|
||||||
do { \
|
do { \
|
||||||
|
@ -355,7 +355,7 @@ static void run_test(const char *file_name)
|
||||||
bres = CreateProcessA(NULL, command, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi);
|
bres = CreateProcessA(NULL, command, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi);
|
||||||
if(!bres) {
|
if(!bres) {
|
||||||
win_skip("script.exe is not available\n");
|
win_skip("script.exe is not available\n");
|
||||||
SET_CALLED(reportSuccess);
|
CLEAR_CALLED(reportSuccess);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue