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:
Eric Anholt 2017-09-18 17:34:30 -07:00 committed by Adam Jackson
parent a8eeb332cc
commit 3336291fc6

View File

@ -133,6 +133,9 @@ start_client(char *const *client_args, int display)
return 1;
}
if (!WIFEXITED(wstatus))
return 1;
return WEXITSTATUS(wstatus);
} else {
execvp(client_args[0], client_args);