Skip to content

Commit ed0d8f5

Browse files
committed
Fix compile-fail diagnostic matching
1 parent 26ecd92 commit ed0d8f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/compile_fail/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function(microtimer_add_compile_fail_test name source regex)
1515
endif()
1616

1717
string(REGEX MATCH "${regex}" ${name}_MATCH "${${name}_OUTPUT}")
18-
if(NOT "${${name}_MATCH}")
18+
if("${${name}_MATCH}" STREQUAL "")
1919
message(FATAL_ERROR "compile-fail test '${name}' did not emit expected diagnostic")
2020
endif()
2121
endfunction()

0 commit comments

Comments
 (0)