зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
324b2e786a
Коммит
47eb98d13a
|
@ -95,7 +95,7 @@ TEST_F(DeadlockDetectorTest, SanityDeathTest)
|
||||||
"###!!! Deadlock may happen NOW!.*" // better catch these easy cases...
|
"###!!! Deadlock may happen NOW!.*" // better catch these easy cases...
|
||||||
"###!!! ASSERTION: Potential deadlock detected.*";
|
"###!!! ASSERTION: Potential deadlock detected.*";
|
||||||
|
|
||||||
ASSERT_DEATH(Sanity_Child(), regex);
|
ASSERT_DEATH_IF_SUPPORTED(Sanity_Child(), regex);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Slightly less stupid deadlock.
|
// Slightly less stupid deadlock.
|
||||||
|
@ -122,7 +122,7 @@ TEST_F(DeadlockDetectorTest, Sanity2DeathTest)
|
||||||
"###!!! Deadlock may happen NOW!.*" // better catch these easy cases...
|
"###!!! Deadlock may happen NOW!.*" // better catch these easy cases...
|
||||||
"###!!! ASSERTION: Potential deadlock detected.*";
|
"###!!! ASSERTION: Potential deadlock detected.*";
|
||||||
|
|
||||||
ASSERT_DEATH(Sanity2_Child(), regex);
|
ASSERT_DEATH_IF_SUPPORTED(Sanity2_Child(), regex);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -160,7 +160,7 @@ TEST_F(DeadlockDetectorTest, Sanity3DeathTest)
|
||||||
"=== Cycle completed at.*--- Mutex : dd.sanity3.m1.*"
|
"=== Cycle completed at.*--- Mutex : dd.sanity3.m1.*"
|
||||||
"###!!! ASSERTION: Potential deadlock detected.*";
|
"###!!! ASSERTION: Potential deadlock detected.*";
|
||||||
|
|
||||||
ASSERT_DEATH(Sanity3_Child(), regex);
|
ASSERT_DEATH_IF_SUPPORTED(Sanity3_Child(), regex);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -185,7 +185,7 @@ TEST_F(DeadlockDetectorTest, Sanity4DeathTest)
|
||||||
"--- Next dependency:.*--- Mutex : dd.sanity4.m2.*"
|
"--- Next dependency:.*--- Mutex : dd.sanity4.m2.*"
|
||||||
"=== Cycle completed at.*--- ReentrantMonitor : dd.sanity4.m1.*"
|
"=== Cycle completed at.*--- ReentrantMonitor : dd.sanity4.m1.*"
|
||||||
"###!!! ASSERTION: Potential deadlock detected.*";
|
"###!!! 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.*"
|
"=== Cycle completed at.*--- Mutex : dd.twothreads.m2.*"
|
||||||
"###!!! ASSERTION: Potential deadlock detected.*";
|
"###!!! ASSERTION: Potential deadlock detected.*";
|
||||||
|
|
||||||
ASSERT_DEATH(TwoThreads_Child(), regex);
|
ASSERT_DEATH_IF_SUPPORTED(TwoThreads_Child(), regex);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -74,5 +74,5 @@ TEST(STLWrapper, DISABLED_ShouldAbortDeathTest)
|
||||||
TEST(STLWrapper, ShouldAbortDeathTest)
|
TEST(STLWrapper, ShouldAbortDeathTest)
|
||||||
#endif
|
#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");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче