mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
Tests: Extend RunCMake.Ninja ShowIncludes case with sample path
Verify that the prefix is separated from the path.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1 +1 @@
|
||||
-- showIncludes='注意: 包含文件:'
|
||||
-- showIncludes='注意: 包含文件: '
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1 +1 @@
|
||||
-- showIncludes='注意: 包含文件:'
|
||||
-- showIncludes='注意: 包含文件: '
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user