aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/tests.h')
-rw-r--r--src/tests/tests.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h
index 56aa4b8c5..8551e4e4d 100644
--- a/src/tests/tests.h
+++ b/src/tests/tests.h
@@ -97,7 +97,14 @@ class Test_Options
bool abort_on_first_fail() const { return m_abort_on_first_fail; }
- bool no_avoid_undefined_behavior() const { return m_no_avoid_undefined; }
+ bool no_avoid_undefined_behavior() const
+ {
+#if defined(BOTAN_HAS_SANITIZER_UNDEFINED)
+ return m_no_avoid_undefined;
+#else
+ return true;
+#endif
+ }
private:
std::vector<std::string> m_requested_tests;