From 3336291fc68444ee65b48ba675ec947e505fed57 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 18 Sep 2017 17:34:30 -0700 Subject: [PATCH] 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 --- test/simple-xinit.c | 3 +++ 1 file changed, 3 insertions(+) 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);