File tree Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,10 @@ elseif(buildDir STREQUAL "debug")
13
13
else ()
14
14
set (buildType Debug )
15
15
endif ()
16
-
17
16
if (NOT CMAKE_BUILD_TYPE )
18
17
set (CMAKE_BUILD_TYPE ${buildType} )
19
18
endif ()
20
19
21
- # if(CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo OR CMAKE_BUILD_TYPE STREQUAL Release )
22
- # endif()
23
20
24
21
set (CMAKE_CXX_STANDARD 23 )
25
22
set (CMAKE_CXX_STANDARD_REQUIRED true )
@@ -71,7 +68,7 @@ target_link_libraries(fifo4.tsan PRIVATE pthread tsan)
71
68
include (GoogleTest )
72
69
enable_testing ()
73
70
74
- add_executable (unitTests sanitizers.cpp unitTests.cpp )
71
+ add_executable (unitTests unitTests.cpp )
75
72
target_compile_options (unitTests PRIVATE -fsanitize=undefined -fsanitize=address )
76
73
target_link_libraries (unitTests PRIVATE asan ubsan gtest gtest_main )
77
74
target_link_options (unitTests PRIVATE -fsanitize=undefined -fsanitize=address )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
9
9
#include < type_traits>
10
10
11
+ extern " C" {
12
+ void __ubsan_on_report () {
13
+ FAIL () << " Encountered an undefined behavior sanitizer error" ;
14
+ }
15
+ void __asan_on_error () {
16
+ FAIL () << " Encountered an address sanitizer error" ;
17
+ }
18
+ void __tsan_on_report () {
19
+ FAIL () << " Encountered a thread sanitizer error" ;
20
+ }
21
+ } // extern "C"
22
+ //
11
23
12
24
template <typename FifoT>
13
25
class FifoTest : public testing ::Test {
You can’t perform that action at this time.
0 commit comments