summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-14 12:02:34 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-14 12:06:19 (GMT)
commit3c0488d7d3557ac3840bd6f72ba18415699b1b44 (patch)
treea1a77fd6b0494bda5eea1daa672620247031aeaa /Tests
parent6c2c483ef9ca8e7238df07b6230e714c314e40eb (diff)
downloadCMake-3c0488d7d3557ac3840bd6f72ba18415699b1b44.zip
CMake-3c0488d7d3557ac3840bd6f72ba18415699b1b44.tar.gz
CMake-3c0488d7d3557ac3840bd6f72ba18415699b1b44.tar.bz2
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.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 651e1b9..9512ea6 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1487,9 +1487,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
--build-project WarnUnusedUnusedViaUnset
--build-options "--warn-unused-vars")
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
- 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")
add_test(WarnUnusedCliUnused ${CMAKE_CTEST_COMMAND}