summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/xserver-test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/xserver-test.cpp b/test/xserver-test.cpp
index 7f949ef..822bb23 100644
--- a/test/xserver-test.cpp
+++ b/test/xserver-test.cpp
@@ -358,10 +358,15 @@ TEST(XServer, KeepAlive)
TEST(XServer, RemoveOption)
{
+ int i = 0;
XServer server;
server.SetOption("-fail", "yes");
server.SetOption("-logfile", LOGFILE_DIR "/Xorg-remove-option.log");
server.Start(TEST_ROOT_DIR "/xserver-test-helper");
+
+ while(i++ < 10 && server.GetState() == Process::RUNNING)
+ usleep(50000);
+
ASSERT_EQ(server.GetState(), Process::FINISHED_FAILURE);
server.RemoveOption("-fail");