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 <e...@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

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to