summaryrefslogtreecommitdiff
path: root/utils/google-benchmark/test/diagnostics_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'utils/google-benchmark/test/diagnostics_test.cc')
-rw-r--r--utils/google-benchmark/test/diagnostics_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/google-benchmark/test/diagnostics_test.cc b/utils/google-benchmark/test/diagnostics_test.cc
index c6c235d0c265..1046730b0fc1 100644
--- a/utils/google-benchmark/test/diagnostics_test.cc
+++ b/utils/google-benchmark/test/diagnostics_test.cc
@@ -26,7 +26,7 @@ void TestHandler() {
}
void try_invalid_pause_resume(benchmark::State& state) {
-#if !defined(NDEBUG) && !defined(TEST_HAS_NO_EXCEPTIONS)
+#if !defined(TEST_BENCHMARK_LIBRARY_HAS_NO_ASSERTIONS) && !defined(TEST_HAS_NO_EXCEPTIONS)
try {
state.PauseTiming();
std::abort();