Skip to content

Commit 9f394a7

Browse files
committed
cmake: compile-fail tests
1 parent d2f119d commit 9f394a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ function(openmethod_compile_fail_test testname fail_regex)
7272
add_library("compile-fail-${testname}" STATIC EXCLUDE_FROM_ALL "${testname}.cpp")
7373
target_link_libraries("compile-fail-${testname}" PRIVATE Boost::openmethod)
7474
add_test(
75-
NAME "openmethod-compile-fail-${testname}"
75+
NAME "openmethod-${testname}"
7676
COMMAND "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target "compile-fail-${testname}" --config $<CONFIG>)
77-
set_property(TEST "openmethod-compile-fail-${testname}" PROPERTY PASS_REGULAR_EXPRESSION "${fail_regex}")
77+
set_property(TEST "openmethod-${testname}" PROPERTY PASS_REGULAR_EXPRESSION "${fail_regex}")
7878
endfunction()
7979

8080
openmethod_compile_fail_test(
8181
compile_fail_non_polymorphic_virtual_parameter "parameter is not a polymorphic class")
8282
openmethod_compile_fail_test(
83-
compile_fail_non_polymorphic_virtual_ptr "no matching constructor")
83+
compile_fail_non_polymorphic_virtual_ptr ".*")
8484
openmethod_compile_fail_test(
8585
compile_fail_virtual_parameter_to_value "virtual_traits not specialized for type")
8686
openmethod_compile_fail_test(

0 commit comments

Comments
 (0)