Commit 0c0d2ee8 authored by Povilas Kanapickas's avatar Povilas Kanapickas
Browse files

misc: Sync DoubleSegfault test to current behavior of Xorg

This commit in xserver 9c72887939f319e185d2726d9d9a4191b9d12efd changed
the behavior of crashing server from exit(1) to abort(). Adjust the test
accordingly.
parent 6799bd76
Pipeline #267199 passed with stages
in 1 minute and 35 seconds
......@@ -118,9 +118,11 @@ TEST(MiscServerTest, DoubleSegfault)
if (waitpid(server.Pid(), &status, 0) == -1)
break;
/* A SIGSEGV triggers FatalError and then exit(1) */
ASSERT_FALSE(WIFSIGNALED(status));
ASSERT_EQ(WEXITSTATUS(status), 1);
/* A SIGSEGV triggers FatalError and then abort() which is effectively termination by the
SIGABRT signal */
ASSERT_TRUE(WIFSIGNALED(status));
ASSERT_EQ(WTERMSIG(status), SIGABRT);
ASSERT_EQ(WEXITSTATUS(status), 0);
std::ifstream logfile(server.GetLogFilePath().c_str());
std::string line;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment