File tree Expand file tree Collapse file tree 4 files changed +24
-13
lines changed
src/beman/optional26/tests Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ include("${CMAKE_CURRENT_LIST_DIR}/gcc-flags.cmake")
4
4
5
5
set (CMAKE_C_COMPILER gcc-14)
6
6
set (CMAKE_CXX_COMPILER g++-14)
7
- set (GCOV_EXECUTABLE
8
- "gcov-14"
9
- CACHE STRING "GCOV executable" FORCE)
7
+ set (GCOV_EXECUTABLE "gcov-14" CACHE STRING "GCOV executable" FORCE)
10
8
11
9
set (CMAKE_CXX_FLAGS_ASAN
12
10
"${CMAKE_CXX_FLAGS_ASAN} -Wno-maybe-uninitialized"
13
- CACHE STRING "C++ ASAN Flags" FORCE)
11
+ CACHE STRING
12
+ "C++ ASAN Flags"
13
+ FORCE
14
+ )
Original file line number Diff line number Diff line change @@ -7,4 +7,7 @@ set(CMAKE_CXX_COMPILER g++-15)
7
7
8
8
set (CMAKE_CXX_FLAGS_ASAN
9
9
"${CMAKE_CXX_FLAGS_ASAN} -Wno-maybe-uninitialized"
10
- CACHE STRING "C++ ASAN Flags" FORCE)
10
+ CACHE STRING
11
+ "C++ ASAN Flags"
12
+ FORCE
13
+ )
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ set(CMAKE_CXX_FLAGS_TSAN
30
30
)
31
31
set (CMAKE_CXX_FLAGS_ASAN
32
32
"-O3 -g -DNDEBUG -fsanitize=address,undefined,leak"
33
- CACHE STRING "C++ ASAN Flags" FORCE)
33
+ CACHE STRING
34
+ "C++ ASAN Flags"
35
+ FORCE
36
+ )
34
37
35
38
set (CMAKE_CXX_FLAGS_GCOV
36
39
"-O0 -fno-inline -g --coverage -fprofile-abs-path"
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ include(GoogleTest)
9
9
add_executable(beman_optional26_test)
10
10
11
11
target_sources(
12
- beman_optional26_test
13
- PRIVATE
12
+ beman_optional26_test
13
+ PRIVATE
14
14
optional.t.cpp
15
15
optional_constexpr.t.cpp
16
16
optional_monadic.t.cpp
@@ -38,12 +38,16 @@ add_library(constructor_fails test_constructor_fail.cpp)
38
38
target_link_libraries(constructor_fails PRIVATE beman_optional26)
39
39
40
40
set_target_properties(
41
- constructor_fails PROPERTIES EXCLUDE_FROM_ALL true EXCLUDE_FROM_DEFAULT_BUILD
42
- true)
41
+ constructor_fails
42
+ PROPERTIES EXCLUDE_FROM_ALL true EXCLUDE_FROM_DEFAULT_BUILD true
43
+ )
43
44
44
- add_test(NAME constructor_fails
45
- COMMAND ${CMAKE_COMMAND} --build "${CMAKE_BINARY_DIR}" --target
46
- constructor_fails --config $<CONFIGURATION>)
45
+ add_test(
46
+ NAME constructor_fails
47
+ COMMAND
48
+ ${CMAKE_COMMAND} --build "${CMAKE_BINARY_DIR}" --target
49
+ constructor_fails --config $<CONFIGURATION>
50
+ )
47
51
48
52
set_tests_properties(constructor_fails PROPERTIES WILL_FAIL true)
49
53
# Alternatively -- check for a particular regex to pass
You can’t perform that action at this time.
0 commit comments