Commit 6b562b9f authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Fix compilation of EXPECT_DEATH

Or, more precisely, avoid compilation of tests using these on systems
which don't have them.
parent ee0782b6
......@@ -298,6 +298,10 @@ TEST_F(InstallListenAddresses, brokenRollback) {
// Make sure the death tests are filterable away.
typedef InstallListenAddresses InstallListenAddressesDeathTest;
// There are systems which don't have EXPECT_DEATH. We skip the tests there.
// We're lucky, EXPECT_DEATH is a macro, so we can test for its existence this
// easily.
// We make the socket requestor throw a "fatal" exception, one where we can't be
// sure the state between processes is consistent. So we abort in that case.
TEST_F(InstallListenAddressesDeathTest, inconsistent) {
......@@ -336,5 +340,6 @@ TEST_F(InstallListenAddressesDeathTest, cantClose) {
// And reset it back, so it can safely clean up itself.
sock_requestor_.break_release_ = false;
#endif // EXPECT_DEATH
Supports Markdown
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