summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-10-29 10:12:33 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-11-07 13:14:08 +1000
commite7936de7e6c492f1c993c89c208b7e1b1ba7116d (patch)
tree917cbbec1aeb9180f1697cab0f894f6a760bbaa5
parent841e689e64dadca5cc46755d43eff141779fd938 (diff)
test: exit(0) the xserver test after forking
Otherwise the child will continue to run tests in parallel with the parent, causing conflicts. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/xserver-test.cpp2
1 files changed, 1 insertions, 1 deletions
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;