diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-17 13:47:17 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-17 13:47:17 (GMT) |
commit | a117e02cc8e204ed5992e110c62942d80390bfe7 (patch) | |
tree | 628ffdcb26e344f453f79d15f358762ac2a05d0b /Tests | |
parent | 2c82f2b75979208d9db6b514b0962f4e6b9aa05e (diff) | |
download | CMake-a117e02cc8e204ed5992e110c62942d80390bfe7.zip CMake-a117e02cc8e204ed5992e110c62942d80390bfe7.tar.gz CMake-a117e02cc8e204ed5992e110c62942d80390bfe7.tar.bz2 |
Revert "Add test for unused warnings at the end of scope"
This reverts commit 91c4c9921c40361df860c1384a46ed77c6118c23.
The test doesn't work yet and should not have been put on this branch
yet.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 15 | ||||
-rw-r--r-- | Tests/VariableUnusedViaScope/CMakeLists.txt | 2 |
2 files changed, 0 insertions, 17 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index adc4f90..739dcdf 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1104,21 +1104,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/ FAIL_REGULAR_EXPRESSION ":5: warning: \\(unsetting\\) unused variable 'UNUSED_VARIABLE'") LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/WarnUnusedUnusedViaUnset") - ADD_TEST(WarnUnusedUnusedViaScope ${CMAKE_CTEST_COMMAND} - --build-and-test - "${CMake_SOURCE_DIR}/Tests/VariableUnusedViaScope" - "${CMake_BINARY_DIR}/Tests/WarnUnusedUnusedViaScope" - --build-generator ${CMAKE_TEST_GENERATOR} - --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} - --build-noclean - --build-project WarnUnusedUnusedViaScope - --build-options "--warn-unused-vars") - SET_TESTS_PROPERTIES(WarnUnusedUnusedViaScope PROPERTIES - PASS_REGULAR_EXPRESSION "warning: \\(out of scope\\) unused variable 'UNUSED_VARIABLE'") - SET_TESTS_PROPERTIES(WarnUnusedUnusedViaScope PROPERTIES - FAIL_REGULAR_EXPRESSION "warning: \\(unsetting\\) unused variable 'UNUSED_VARIABLE'") - LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/WarnUnusedUnusedViaScope") - ADD_TEST(WarnUnusedCliUnused ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/VariableUsage" diff --git a/Tests/VariableUnusedViaScope/CMakeLists.txt b/Tests/VariableUnusedViaScope/CMakeLists.txt deleted file mode 100644 index a024bc5..0000000 --- a/Tests/VariableUnusedViaScope/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ -set(UNUSED_VARIABLE) -# Warning should occur here |