Browse Source

Tests: Extend RunCMake.Ninja ShowIncludes case with sample path

Verify that the prefix is separated from the path.
Brad King 2 years ago
parent
commit
c6dd4fa21d

+ 1 - 1
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)

+ 1 - 1
Tests/RunCMake/Ninja/ShowIncludes-54936-stdout.txt

@@ -1 +1 @@
--- showIncludes='注意: 包含文件:'
+-- showIncludes='注意: 包含文件:  '

+ 1 - 1
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)

+ 1 - 1
Tests/RunCMake/Ninja/ShowIncludes-65001-stdout.txt

@@ -1 +1 @@
--- showIncludes='注意: 包含文件:'
+-- showIncludes='注意: 包含文件:  '

+ 2 - 2
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;
   }