From: Adrian Prantl Date: Mon, 3 Dec 2018 23:11:19 +0000 (+0000) Subject: Relax tests to also work on Windows X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f339471b756e0f37f0a52271e99540a52205d39a;p=clang Relax tests to also work on Windows git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348211 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/debug-prefix-map.c b/test/CodeGen/debug-prefix-map.c index 560f25fe0b..2c2b0e27e5 100644 --- a/test/CodeGen/debug-prefix-map.c +++ b/test/CodeGen/debug-prefix-map.c @@ -18,19 +18,21 @@ void test_rewrite_includes() { // CHECK-NO-MAIN-FILE-NAME: !DIFile(filename: "/var/empty{{/|\\5C}}" // CHECK-NO-MAIN-FILE-NAME: !DIFile(filename: "/var/empty{{[/\\]}}{{.*}}", -// CHECK-NO-MAIN-FILE-NAME-SAME: directory: "") +// Dir should always be empty, but on Windows we can't recognize /var +// as being an absolute path. +// CHECK-NO-MAIN-FILE-NAME-SAME: directory: "{{()|(.*:.*)}}") // CHECK-NO-MAIN-FILE-NAME: !DIFile(filename: "/var/empty{{[/\\]}}Inputs/stdio.h", -// CHECK-NO-MAIN-FILE-NAME-SAME: directory: "") +// CHECK-NO-MAIN-FILE-NAME-SAME: directory: "{{()|(.*:.*)}}") // CHECK-NO-MAIN-FILE-NAME-NOT: !DIFile(filename: // CHECK-EVIL: !DIFile(filename: "/var=empty{{[/\\]}}{{.*}}" // CHECK-EVIL: !DIFile(filename: "/var=empty{{[/\\]}}{{.*}}Inputs/stdio.h", -// CHECK-EVIL-SAME: directory: "") +// CHECK-EVIL-SAME: directory: "{{()|(.*:.*)}}") // CHECK-EVIL-NOT: !DIFile(filename: // CHECK: !DIFile(filename: "/var/empty{{[/\\]}}{{.*}}" // CHECK: !DIFile(filename: "/var/empty{{[/\\]}}{{.*}}Inputs/stdio.h", -// CHECK-SAME: directory: "") +// CHECK-SAME: directory: "{{()|(.*:.*)}}") // CHECK-NOT: !DIFile(filename: // CHECK-COMPILATION-DIR: !DIFile(filename: "{{.*}}", directory: "/var/empty") diff --git a/test/Modules/module-debuginfo-prefix.m b/test/Modules/module-debuginfo-prefix.m index 712c1063e9..da5d86abef 100644 --- a/test/Modules/module-debuginfo-prefix.m +++ b/test/Modules/module-debuginfo-prefix.m @@ -20,4 +20,6 @@ @import DebugObjC; #endif -// CHECK: !DIFile(filename: "/OVERRIDE/DebugObjC.h", directory: "") +// Dir should always be empty, but on Windows we can't recognize /var +// as being an absolute path. +// CHECK: !DIFile(filename: "/OVERRIDE/DebugObjC.h", directory: "{{()|(.*:.*)}}")