[clang] 7ddc628 - [Preprocessor] Fix backslash tests on Windows after D49466

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 17:28:20 PST 2019


Author: Fangrui Song
Date: 2019-11-26T17:27:58-08:00
New Revision: 7ddc6287a08ef758d66acb20d006c9ab0c579fcc

URL: https://github.com/llvm/llvm-project/commit/7ddc6287a08ef758d66acb20d006c9ab0c579fcc
DIFF: https://github.com/llvm/llvm-project/commit/7ddc6287a08ef758d66acb20d006c9ab0c579fcc.diff

LOG: [Preprocessor] Fix backslash tests on Windows after D49466

See http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/29442/steps/test-check-all/logs/stdio

Added: 
    

Modified: 
    clang/test/Preprocessor/file_test.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Preprocessor/file_test.c b/clang/test/Preprocessor/file_test.c
index bdc5f1df6599..09ae48f48e09 100644
--- a/clang/test/Preprocessor/file_test.c
+++ b/clang/test/Preprocessor/file_test.c
@@ -6,14 +6,14 @@
 filename: __FILE__
 #include "file_test.h"
 
-// CHECK: filename: "/UNLIKELY_PATH/empty{{[/\\]}}file_test.c"
-// CHECK: filename: "/UNLIKELY_PATH/empty{{[/\\]}}file_test.h"
-// CHECK: basefile: "/UNLIKELY_PATH/empty{{[/\\]}}file_test.c"
+// CHECK: filename: "/UNLIKELY_PATH/empty{{/|\\\\}}file_test.c"
+// CHECK: filename: "/UNLIKELY_PATH/empty{{/|\\\\}}file_test.h"
+// CHECK: basefile: "/UNLIKELY_PATH/empty{{/|\\\\}}file_test.c"
 // CHECK-NOT: filename:
 
-// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty{{[/\\]}}file_test.c"
-// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty{{[/\\]}}file_test.h"
-// CHECK-EVIL: basefile: "/UNLIKELY_PATH=empty{{[/\\]}}file_test.c"
+// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty{{/|\\\\}}file_test.c"
+// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty{{/|\\\\}}file_test.h"
+// CHECK-EVIL: basefile: "/UNLIKELY_PATH=empty{{/|\\\\}}file_test.c"
 // CHECK-EVIL-NOT: filename:
 
 // CHECK-REMOVE: filename: "file_test.c"


        


More information about the cfe-commits mailing list