test: Return error from simple-xinit if the client crashes.
I want to be able to call client tests with simple-xinit, so assertion failures should be an error. v2: Clean up identical returns. Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
a8eeb332cc
commit
3336291fc6
|
@ -133,6 +133,9 @@ start_client(char *const *client_args, int display)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!WIFEXITED(wstatus))
|
||||||
|
return 1;
|
||||||
|
|
||||||
return WEXITSTATUS(wstatus);
|
return WEXITSTATUS(wstatus);
|
||||||
} else {
|
} else {
|
||||||
execvp(client_args[0], client_args);
|
execvp(client_args[0], client_args);
|
||||||
|
|
Loading…
Reference in New Issue