Bug 1317451 - ASSERT_DEATH replaced by ASSERT_DEATH_IF_SUPPORTED. r=froydnj

MozReview-Commit-ID: Auqwd0NlM17

--HG--
extra : rebase_source : 67a86926e1ddce38ec24f651c2cc79c6a872bc93
This commit is contained in:
Michelangelo De Simone 2016-11-13 11:12:49 -08:00
Родитель 324b2e786a
Коммит 47eb98d13a
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -95,7 +95,7 @@ TEST_F(DeadlockDetectorTest, SanityDeathTest)
"###!!! Deadlock may happen NOW!.*" // better catch these easy cases...
"###!!! ASSERTION: Potential deadlock detected.*";
ASSERT_DEATH(Sanity_Child(), regex);
ASSERT_DEATH_IF_SUPPORTED(Sanity_Child(), regex);
}
// Slightly less stupid deadlock.
@ -122,7 +122,7 @@ TEST_F(DeadlockDetectorTest, Sanity2DeathTest)
"###!!! Deadlock may happen NOW!.*" // better catch these easy cases...
"###!!! ASSERTION: Potential deadlock detected.*";
ASSERT_DEATH(Sanity2_Child(), regex);
ASSERT_DEATH_IF_SUPPORTED(Sanity2_Child(), regex);
}
int
@ -160,7 +160,7 @@ TEST_F(DeadlockDetectorTest, Sanity3DeathTest)
"=== Cycle completed at.*--- Mutex : dd.sanity3.m1.*"
"###!!! ASSERTION: Potential deadlock detected.*";
ASSERT_DEATH(Sanity3_Child(), regex);
ASSERT_DEATH_IF_SUPPORTED(Sanity3_Child(), regex);
}
int
@ -185,7 +185,7 @@ TEST_F(DeadlockDetectorTest, Sanity4DeathTest)
"--- Next dependency:.*--- Mutex : dd.sanity4.m2.*"
"=== Cycle completed at.*--- ReentrantMonitor : dd.sanity4.m1.*"
"###!!! ASSERTION: Potential deadlock detected.*";
ASSERT_DEATH(Sanity4_Child(), regex);
ASSERT_DEATH_IF_SUPPORTED(Sanity4_Child(), regex);
}
//-----------------------------------------------------------------------------
@ -264,7 +264,7 @@ TEST_F(DeadlockDetectorTest, TwoThreadsDeathTest)
"=== Cycle completed at.*--- Mutex : dd.twothreads.m2.*"
"###!!! ASSERTION: Potential deadlock detected.*";
ASSERT_DEATH(TwoThreads_Child(), regex);
ASSERT_DEATH_IF_SUPPORTED(TwoThreads_Child(), regex);
}
static void

Просмотреть файл

@ -74,5 +74,5 @@ TEST(STLWrapper, DISABLED_ShouldAbortDeathTest)
TEST(STLWrapper, ShouldAbortDeathTest)
#endif
{
ASSERT_DEATH(ShouldAbort(), "terminate called after throwing an instance of 'std::out_of_range'|vector::_M_range_check");
ASSERT_DEATH_IF_SUPPORTED(ShouldAbort(), "terminate called after throwing an instance of 'std::out_of_range'|vector::_M_range_check");
}