diff --git a/Makefile b/Makefile index e095f18..afbae8b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CXX= clang++ CXXFLAGS= --std=c++20 -O0 -g -pthread -DGP_TESTS -DFUZZ_STRENGTH=100 -DNO_BENCH=1 -pedantic \ -fprofile-instr-generate -fcoverage-mapping -Wno-unknown-attributes -fno-omit-frame-pointer \ + -DCATCH_EXCEPTIONS=1 # -fsanitize=address -fsanitize-blacklist=blacklist.txt diff --git a/tests.cpp b/tests.cpp index 706b1b2..7bddff7 100644 --- a/tests.cpp +++ b/tests.cpp @@ -36,7 +36,9 @@ void print_logs() { } } +#ifndef CATCH_EXCEPTIONS #define CATCH_EXCEPTIONS 0 +#endif std::vector> tests;