From 4c4aea6abd680b62132ead1c9cc943e3e489271d Mon Sep 17 00:00:00 2001 From: Gloria Mundi Date: Thu, 20 Nov 2025 17:45:28 +0100 Subject: enable _GLIBCXX_ASSERTIONS for sanitizer tests --- test/util.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/util.h') diff --git a/test/util.h b/test/util.h index 880ff04..98fd7f6 100644 --- a/test/util.h +++ b/test/util.h @@ -1,3 +1,7 @@ +#ifdef SANITIZE +# define _GLIBCXX_ASSERTIONS 1 +# define _GLIBCXX_SANITIZE_VECTOR 1 +#endif #include using namespace std; @@ -202,7 +206,7 @@ namespace detail { return 30/t; } - double speed = benchmark(); + double speed = sanitize ? numeric_limits::infinity() : benchmark(); } struct timer { -- cgit v1.2.3