diff options
author | Brad King <brad.king@kitware.com> | 2023-01-26 20:08:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-27 15:55:37 (GMT) |
commit | c6dd4fa21d83f1dbbc4489de3a8a7fcd20e45c84 (patch) | |
tree | c639c77651285382bac158bc5fcffa6199ad2c5a | |
parent | a9d97492fdd8d8689ede256d88546abb2fd70c7e (diff) | |
download | CMake-c6dd4fa21d83f1dbbc4489de3a8a7fcd20e45c84.zip CMake-c6dd4fa21d83f1dbbc4489de3a8a7fcd20e45c84.tar.gz CMake-c6dd4fa21d83f1dbbc4489de3a8a7fcd20e45c84.tar.bz2 |
Tests: Extend RunCMake.Ninja ShowIncludes case with sample path
Verify that the prefix is separated from the path.
-rw-r--r-- | Tests/RunCMake/Ninja/ShowIncludes-54936-check.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/Ninja/ShowIncludes-54936-stdout.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/Ninja/ShowIncludes-65001-check.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/Ninja/ShowIncludes-65001-stdout.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/showIncludes.c | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-54936-check.cmake b/Tests/RunCMake/Ninja/ShowIncludes-54936-check.cmake index 40bb68f..c5744b7 100644 --- a/Tests/RunCMake/Ninja/ShowIncludes-54936-check.cmake +++ b/Tests/RunCMake/Ninja/ShowIncludes-54936-check.cmake @@ -1,3 +1,3 @@ # 'cl /showIncludes' prefix with 'VSLANG=2052' and 'chcp 54936'. -string(ASCII 215 162 210 226 58 32 176 252 186 172 206 196 188 254 58 expect) +string(ASCII 215 162 210 226 58 32 176 252 186 172 206 196 188 254 58 32 32 expect) include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes-check.cmake) diff --git a/Tests/RunCMake/Ninja/ShowIncludes-54936-stdout.txt b/Tests/RunCMake/Ninja/ShowIncludes-54936-stdout.txt index 42a2f35..b9ac962 100644 --- a/Tests/RunCMake/Ninja/ShowIncludes-54936-stdout.txt +++ b/Tests/RunCMake/Ninja/ShowIncludes-54936-stdout.txt @@ -1 +1 @@ --- showIncludes='注意: 包含文件:' +-- showIncludes='注意: 包含文件: ' diff --git a/Tests/RunCMake/Ninja/ShowIncludes-65001-check.cmake b/Tests/RunCMake/Ninja/ShowIncludes-65001-check.cmake index c73b734..6f61d3c 100644 --- a/Tests/RunCMake/Ninja/ShowIncludes-65001-check.cmake +++ b/Tests/RunCMake/Ninja/ShowIncludes-65001-check.cmake @@ -1,3 +1,3 @@ # 'cl /showIncludes' prefix with 'VSLANG=2052' and 'chcp 65001'. -string(ASCII 230 179 168 230 132 143 58 32 229 140 133 229 144 171 230 150 135 228 187 182 58 expect) +string(ASCII 230 179 168 230 132 143 58 32 229 140 133 229 144 171 230 150 135 228 187 182 58 32 32 expect) include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes-check.cmake) diff --git a/Tests/RunCMake/Ninja/ShowIncludes-65001-stdout.txt b/Tests/RunCMake/Ninja/ShowIncludes-65001-stdout.txt index 42a2f35..b9ac962 100644 --- a/Tests/RunCMake/Ninja/ShowIncludes-65001-stdout.txt +++ b/Tests/RunCMake/Ninja/ShowIncludes-65001-stdout.txt @@ -1 +1 @@ --- showIncludes='注意: 包含文件:' +-- showIncludes='注意: 包含文件: ' diff --git a/Tests/RunCMake/showIncludes.c b/Tests/RunCMake/showIncludes.c index 23b3845..82b1416 100644 --- a/Tests/RunCMake/showIncludes.c +++ b/Tests/RunCMake/showIncludes.c @@ -17,14 +17,14 @@ int main() if (cp == 54936 || cp == 936) { /* VSLANG=2052 */ printf("\xd7\xa2\xd2\xe2: " - "\xb0\xfc\xba\xac\xce\xc4\xbc\xfe:\n"); + "\xb0\xfc\xba\xac\xce\xc4\xbc\xfe: C:\\foo.h\n"); return 0; } if (cp == 65001) { /* VSLANG=2052 */ printf("\xe6\xb3\xa8\xe6\x84\x8f: " - "\xe5\x8c\x85\xe5\x90\xab\xe6\x96\x87\xe4\xbb\xb6:\n"); + "\xe5\x8c\x85\xe5\x90\xab\xe6\x96\x87\xe4\xbb\xb6: C:\\foo.h\n"); return 0; } |