Index: client/capture_context_mac_test.cc |
diff --git a/client/capture_context_mac_test.cc b/client/capture_context_mac_test.cc |
index 3dc0ba8dabc1e80e21c4c238cf27396a822e58c7..6d5967d5f470d14e9270aeab56e59096b97ac50e 100644 |
--- a/client/capture_context_mac_test.cc |
+++ b/client/capture_context_mac_test.cc |
@@ -95,10 +95,7 @@ void TestCaptureContext() { |
{ |
SCOPED_TRACE("context_1"); |
- SanityCheckContext(&context_1); |
- } |
- if (testing::Test::HasFatalFailure()) { |
- return; |
+ ASSERT_NO_FATAL_FAILURE(SanityCheckContext(&context_1)); |
} |
// The program counter reference value is this function’s address. The |
@@ -134,10 +131,7 @@ void TestCaptureContext() { |
{ |
SCOPED_TRACE("context_2"); |
- SanityCheckContext(&context_2); |
- } |
- if (testing::Test::HasFatalFailure()) { |
- return; |
+ ASSERT_NO_FATAL_FAILURE(SanityCheckContext(&context_2)); |
} |
EXPECT_EQ(sp, StackPointerFromContext(&context_2)); |
@@ -145,10 +139,7 @@ void TestCaptureContext() { |
} |
TEST(CaptureContextMac, CaptureContext) { |
- TestCaptureContext(); |
- if (Test::HasFatalFailure()) { |
- return; |
- } |
+ ASSERT_NO_FATAL_FAILURE(TestCaptureContext()); |
} |
} // namespace |