diff options
author | Eric Anholt <eric@anholt.net> | 2017-09-18 17:34:30 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-09-20 13:19:27 -0400 |
commit | 3336291fc68444ee65b48ba675ec947e505fed57 (patch) | |
tree | 8f8b05af962e779d2e1522baac6d3e3af3a834f2 | |
parent | a8eeb332ccf4d13b3fdcc382397bd3ea45e76212 (diff) |
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>
-rw-r--r-- | test/simple-xinit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/simple-xinit.c b/test/simple-xinit.c index 89189a609..1fc31be26 100644 --- a/test/simple-xinit.c +++ b/test/simple-xinit.c @@ -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); |