[PATCH xserver 4/7 v2] test: Return error from simple-xinit if the client crashes.

Eric Anholt eric at anholt.net
Wed Aug 23 20:02:03 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>
---

This, and patch 2 and 3 need review, then I think we're ready.

 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