We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 736ce1c commit ddd98feCopy full SHA for ddd98fe
1 file changed
cmake/ctest_sanitizer.cmake
@@ -36,12 +36,16 @@ set(CONFIGURE_OPTIONS "--preset debug-clang" "-DENABLE_SAN=${ENABLE_SAN}")
36
37
ctest_configure(OPTIONS "${CONFIGURE_OPTIONS}")
38
39
-# ctest_submit(PARTS Configure)
+ctest_submit(PARTS Configure)
40
41
ctest_build()
42
43
-# ctest_submit(PARTS Build)
+ctest_submit(PARTS Build)
44
45
-ctest_memcheck()
+ctest_memcheck(RETURN_VALUE _ctest_test_ret_val)
46
47
ctest_submit(PARTS MemCheck)
48
+
49
+if(_ctest_test_ret_val)
50
+ message(FATAL_ERROR "${ENABLE_SAN} sanitizer check failed!")
51
+endif()
0 commit comments