| Index: mojo/public/cpp/utility/tests/thread_unittest.cc
|
| diff --git a/mojo/public/cpp/utility/tests/thread_unittest.cc b/mojo/public/cpp/utility/tests/thread_unittest.cc
|
| index 223315bbb94f4286c4169c7068606dfdbeea5442..bca8a1d9b9b779f25b19aa2a44a5c9ac3c6f3e59 100644
|
| --- a/mojo/public/cpp/utility/tests/thread_unittest.cc
|
| +++ b/mojo/public/cpp/utility/tests/thread_unittest.cc
|
| @@ -70,7 +70,7 @@ TEST(ThreadTest, CreateAndJoin) {
|
| #if !defined(NDEBUG)
|
| TEST(ThreadTest, DebugAssertionFailures) {
|
| // Can only start once.
|
| - EXPECT_DEATH({
|
| + EXPECT_DEATH_IF_SUPPORTED({
|
| int value = 0;
|
| SetIntThread thread(&value, 1);
|
| thread.Start();
|
| @@ -78,14 +78,14 @@ TEST(ThreadTest, DebugAssertionFailures) {
|
| }, "");
|
|
|
| // Must join (if you start).
|
| - EXPECT_DEATH({
|
| + EXPECT_DEATH_IF_SUPPORTED({
|
| int value = 0;
|
| SetIntThread thread(&value, 2);
|
| thread.Start();
|
| }, "");
|
|
|
| // Can only join once.
|
| - EXPECT_DEATH({
|
| + EXPECT_DEATH_IF_SUPPORTED({
|
| int value = 0;
|
| SetIntThread thread(&value, 3);
|
| thread.Start();
|
| @@ -94,7 +94,7 @@ TEST(ThreadTest, DebugAssertionFailures) {
|
| }, "");
|
|
|
| // Stack too big (we're making certain assumptions here).
|
| - EXPECT_DEATH({
|
| + EXPECT_DEATH_IF_SUPPORTED({
|
| int value = 0;
|
| Thread::Options options;
|
| options.set_stack_size(static_cast<size_t>(-1));
|
|
|