diff options
author | Brad King <brad.king@kitware.com> | 2019-04-08 13:49:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-08 14:11:54 (GMT) |
commit | 82948805ecbd5d65db27c646b594f4ce331a8f97 (patch) | |
tree | bf56474ef7cf73e1a757c51d10306b898a6a273d /Tests/RunCMake/ParseImplicitIncludeInfo | |
parent | 3c9dec0bdc11a69afcbaa93a0e61dc71cddd5491 (diff) | |
download | CMake-82948805ecbd5d65db27c646b594f4ce331a8f97.zip CMake-82948805ecbd5d65db27c646b594f4ce331a8f97.tar.gz CMake-82948805ecbd5d65db27c646b594f4ce331a8f97.tar.bz2 |
Tests: Clarify hand-written cases in RunCMake.ParseImplicitIncludeInfo
Diffstat (limited to 'Tests/RunCMake/ParseImplicitIncludeInfo')
-rw-r--r-- | Tests/RunCMake/ParseImplicitIncludeInfo/ParseImplicitIncludeInfo.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-empty.input (renamed from Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-C.input) | 0 | ||||
-rw-r--r-- | Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-empty.output (renamed from Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-CXX.output) | 0 | ||||
-rw-r--r-- | Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-CXX-empty.input (renamed from Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-CXX.input) | 0 | ||||
-rw-r--r-- | Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-CXX-empty.output (renamed from Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-C.output) | 0 |
5 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/ParseImplicitIncludeInfo/ParseImplicitIncludeInfo.cmake b/Tests/RunCMake/ParseImplicitIncludeInfo/ParseImplicitIncludeInfo.cmake index a39a529..41a407f 100644 --- a/Tests/RunCMake/ParseImplicitIncludeInfo/ParseImplicitIncludeInfo.cmake +++ b/Tests/RunCMake/ParseImplicitIncludeInfo/ParseImplicitIncludeInfo.cmake @@ -17,8 +17,8 @@ set(targets darwin-C-AppleClang-8.0.0.8000042 darwin-CXX-AppleClang-8.0.0.8000042 darwin_nostdinc-C-AppleClang-8.0.0.8000042 darwin_nostdinc-CXX-AppleClang-8.0.0.8000042 - empty-C empty-CXX freebsd-C-Clang-3.3.0 freebsd-CXX-Clang-3.3.0 freebsd-Fortran-GNU-4.6.4 + hand-C-empty hand-CXX-empty linux-C-GNU-7.3.0 linux-CXX-GNU-7.3.0 linux-Fortran-GNU-7.3.0 linux-C-Intel-18.0.0.20170811 linux-CXX-Intel-18.0.0.20170811 linux-C-PGI-18.10.1 linux-CXX-PGI-18.10.1 @@ -104,7 +104,7 @@ foreach(t ${targets}) file(READ ${outfile} output) string(STRIP "${output}" output) cmake_parse_implicit_include_info("${input}" "${lang}" idirs log state) - if(t MATCHES "^empty-") # empty isn't supposed to parse + if(t MATCHES "-empty$") # empty isn't supposed to parse if("${state}" STREQUAL "done") message("empty parse failed: ${idirs}, log=${log}") endif() diff --git a/Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-C.input b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-empty.input index b27eb02..b27eb02 100644 --- a/Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-C.input +++ b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-empty.input diff --git a/Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-CXX.output b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-empty.output index e69de29..e69de29 100644 --- a/Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-CXX.output +++ b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-empty.output diff --git a/Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-CXX.input b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-CXX-empty.input index b983d6b..b983d6b 100644 --- a/Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-CXX.input +++ b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-CXX-empty.input diff --git a/Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-C.output b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-CXX-empty.output index e69de29..e69de29 100644 --- a/Tests/RunCMake/ParseImplicitIncludeInfo/data/empty-C.output +++ b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-CXX-empty.output |