Fix WarnUnusedUnusedViaUnset test pass/fail regex
After conversion of Modules .cmake files to lower case the FAIL_REGULAR_EXPRESSION for this test matched warnings in modules other than the test line itself. Make the pass and fail regular expressions specific to the file containing the lines they are testing.
This commit is contained in:
parent
6c2c483ef9
commit
3c0488d7d3
|
@ -1487,9 +1487,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
--build-project WarnUnusedUnusedViaUnset
|
--build-project WarnUnusedUnusedViaUnset
|
||||||
--build-options "--warn-unused-vars")
|
--build-options "--warn-unused-vars")
|
||||||
set_tests_properties(WarnUnusedUnusedViaUnset PROPERTIES
|
set_tests_properties(WarnUnusedUnusedViaUnset PROPERTIES
|
||||||
PASS_REGULAR_EXPRESSION "CMake Warning .*:7 \\(set\\):")
|
PASS_REGULAR_EXPRESSION "CMake Warning .*VariableUnusedViaUnset.CMakeLists.txt:7 \\(set\\):")
|
||||||
set_tests_properties(WarnUnusedUnusedViaUnset PROPERTIES
|
set_tests_properties(WarnUnusedUnusedViaUnset PROPERTIES
|
||||||
FAIL_REGULAR_EXPRESSION "CMake Warning .*:5 \\(set\\):")
|
FAIL_REGULAR_EXPRESSION "CMake Warning .*VariableUnusedViaUnset.CMakeLists.txt:5 \\(set\\):")
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/WarnUnusedUnusedViaUnset")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/WarnUnusedUnusedViaUnset")
|
||||||
|
|
||||||
add_test(WarnUnusedCliUnused ${CMAKE_CTEST_COMMAND}
|
add_test(WarnUnusedCliUnused ${CMAKE_CTEST_COMMAND}
|
||||||
|
|
Loading…
Reference in New Issue