File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,20 @@ include(../cmake/icm_testing.cmake)
77# Global include for icm based tests
88include_directories ("../include" )
99
10+ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
11+ OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" )
12+ set (ERROR_STRING "does not satisfy 'send'" )
13+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
14+ set (ERROR_STRING "constraints not satisfied" )
15+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
16+ # using Visual Studio C++
17+ endif ()
18+
1019icm_glob_build_failure_tests(
1120 PATTERN fail_*
12- ERROR_MATCHES "does not satisfy 'send'"
21+ ERROR_MATCHES ${ERROR_STRING}
1322)
1423
15- # icm_add_test(
16- # NAME mylib-core
17- # LIBRARIES mylib
18- # SOURCES
19- # mylib-test-helpers.cpp
20- # mylib-core-tests.cpp
21- # )
22-
2324file (GLOB_RECURSE pass_files LIST_DIRECTORIES false "${CMAKE_CURRENT_SOURCE_DIR} " pass_*.cpp)
2425message (pass_files: ${pass_files} )
2526
@@ -30,9 +31,3 @@ foreach(pass_file ${pass_files})
3031 SOURCES ${pass_file}
3132 )
3233endforeach ()
33-
34- #icm_add_build_failure_test(
35- # NAME fail_empty_lambda_p
36- # TARGET icm_fail_empty_lambda_p
37- # SOURCES ../fail_empty_lambda_p.cpp
38- #)
You can’t perform that action at this time.
0 commit comments