Skip to content

Commit 621540d

Browse files
committed
Added error string for gcc
1 parent 507d08d commit 621540d

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

tests/CMakeLists.txt

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@ include(../cmake/icm_testing.cmake)
77
# Global include for icm based tests
88
include_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+
1019
icm_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-
2324
file(GLOB_RECURSE pass_files LIST_DIRECTORIES false "${CMAKE_CURRENT_SOURCE_DIR}" pass_*.cpp)
2425
message(pass_files: ${pass_files})
2526

@@ -30,9 +31,3 @@ foreach(pass_file ${pass_files})
3031
SOURCES ${pass_file}
3132
)
3233
endforeach()
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-
#)

0 commit comments

Comments
 (0)