diff options
Diffstat (limited to 'absl/base/internal/exception_safety_testing.cc')
-rw-r--r-- | absl/base/internal/exception_safety_testing.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/base/internal/exception_safety_testing.cc b/absl/base/internal/exception_safety_testing.cc index 383c9c59..32d904ed 100644 --- a/absl/base/internal/exception_safety_testing.cc +++ b/absl/base/internal/exception_safety_testing.cc @@ -4,6 +4,7 @@ #include "absl/meta/type_traits.h" namespace absl { +exceptions_internal::NoThrowTag no_throw_ctor; namespace exceptions_internal { int countdown = -1; @@ -14,8 +15,7 @@ void MaybeThrow(absl::string_view msg) { testing::AssertionResult FailureMessage(const TestException& e, int countdown) noexcept { - return testing::AssertionFailure() - << "Exception number " << countdown + 1 << " thrown from " << e.what(); + return testing::AssertionFailure() << "Exception thrown from " << e.what(); } } // namespace exceptions_internal } // namespace absl |