[PATCH xorg-gtest 03/11] test: exit(0) the xserver test after forking

Peter Hutterer peter.hutterer at who-t.net
Mon Oct 29 18:38:25 PDT 2012


Otherwise the child will continue to run tests in parallel with the parent,
causing conflicts.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/xserver-test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/xserver-test.cpp b/test/xserver-test.cpp
index ccbc2e9..ed0de36 100644
--- a/test/xserver-test.cpp
+++ b/test/xserver-test.cpp
@@ -240,7 +240,7 @@ TEST(XServer, KeepAlive)
     ASSERT_EQ(write(pipefd[1], buffer, strlen(buffer)), (int)strlen(buffer));
     close(pipefd[1]);
     free(buffer);
-    return;
+    exit(0);
   }
 
   sigset_t sig_mask;
-- 
1.7.11.7



More information about the xorg-devel mailing list