Skip to content

Commit ddd98fe

Browse files
committed
fix ci
1 parent 736ce1c commit ddd98fe

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

cmake/ctest_sanitizer.cmake

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@ set(CONFIGURE_OPTIONS "--preset debug-clang" "-DENABLE_SAN=${ENABLE_SAN}")
3636

3737
ctest_configure(OPTIONS "${CONFIGURE_OPTIONS}")
3838

39-
# ctest_submit(PARTS Configure)
39+
ctest_submit(PARTS Configure)
4040

4141
ctest_build()
4242

43-
# ctest_submit(PARTS Build)
43+
ctest_submit(PARTS Build)
4444

45-
ctest_memcheck()
45+
ctest_memcheck(RETURN_VALUE _ctest_test_ret_val)
4646

4747
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

Comments
 (0)