[PATCH xserver 3/6] test: Return error from simple-xinit if the client crashes.

Eric Anholt eric at anholt.net
Tue Sep 19 00:34:30 UTC 2017


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 at anholt.net>
---
 test/simple-xinit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/simple-xinit.c b/test/simple-xinit.c
index 89189a609c19..1fc31be269a3 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);
-- 
2.14.1



More information about the xorg-devel mailing list