From: Duncan P. N. Exon Smith Date: Sat, 9 Mar 2019 19:33:32 +0000 (+0000) Subject: Fix slashes in path references in -Rmodule-import test from r355778 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33741fce0a0ae75540774c1c87b6658edebc679b;p=clang Fix slashes in path references in -Rmodule-import test from r355778 Fixup for r355778 to fix all the Windows bots. Apparently I already forgot the lesson from r355482 :/. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355779 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Modules/implicit-invalidate-chain.c b/test/Modules/implicit-invalidate-chain.c index 458f24a4dd..f7727a6579 100644 --- a/test/Modules/implicit-invalidate-chain.c +++ b/test/Modules/implicit-invalidate-chain.c @@ -33,35 +33,35 @@ // RUN: FileCheck %s -implicit-check-not "remark:" #include "A.h" // \ - expected-remark-re{{importing module 'A' from '{{.*}}/A.pcm'}} \ - expected-remark-re{{importing module 'B' into 'A' from '{{.*}}/B.pcm'}} \ - expected-remark-re{{importing module 'C' into 'B' from '{{.*}}/C.pcm'}} \ - expected-remark-re{{importing module 'D' into 'C' from '{{.*}}/D.pcm'}} \ - expected-remark-re{{building module 'A' as '{{.*}}/A.pcm'}} \ + expected-remark-re{{importing module 'A' from '{{.*[/\\]}}A.pcm'}} \ + expected-remark-re{{importing module 'B' into 'A' from '{{.*[/\\]}}B.pcm'}} \ + expected-remark-re{{importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm'}} \ + expected-remark-re{{importing module 'D' into 'C' from '{{.*[/\\]}}D.pcm'}} \ + expected-remark-re{{building module 'A' as '{{.*[/\\]}}A.pcm'}} \ expected-remark{{finished building module 'A'}} \ - expected-remark-re{{importing module 'A' from '{{.*}}/A.pcm'}} \ - expected-remark-re{{importing module 'B' into 'A' from '{{.*}}/B.pcm'}} \ - expected-remark-re{{importing module 'C' into 'B' from '{{.*}}/C.pcm'}} \ - expected-remark-re{{importing module 'D' into 'C' from '{{.*}}/D.pcm'}} -// CHECK: remark: importing module 'A' from '{{.*}}/A.pcm' -// CHECK: remark: importing module 'B' into 'A' from '{{.*}}/B.pcm' -// CHECK: remark: importing module 'C' into 'B' from '{{.*}}/C.pcm' -// CHECK: remark: importing module 'D' into 'C' from '{{.*}}/D.pcm' + expected-remark-re{{importing module 'A' from '{{.*[/\\]}}A.pcm'}} \ + expected-remark-re{{importing module 'B' into 'A' from '{{.*[/\\]}}B.pcm'}} \ + expected-remark-re{{importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm'}} \ + expected-remark-re{{importing module 'D' into 'C' from '{{.*[/\\]}}D.pcm'}} +// CHECK: remark: importing module 'A' from '{{.*[/\\]}}A.pcm' +// CHECK: remark: importing module 'B' into 'A' from '{{.*[/\\]}}B.pcm' +// CHECK: remark: importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm' +// CHECK: remark: importing module 'D' into 'C' from '{{.*[/\\]}}D.pcm' // CHECK: remark: building module 'A' // CHECK: remark: building module 'B' // CHECK: remark: building module 'C' // CHECK: remark: building module 'D' // CHECK: remark: finished building module 'D' -// CHECK: remark: importing module 'D' from '{{.*}}/D.pcm' +// CHECK: remark: importing module 'D' from '{{.*[/\\]}}D.pcm' // CHECK: remark: finished building module 'C' -// CHECK: remark: importing module 'C' from '{{.*}}/C.pcm' -// CHECK: remark: importing module 'D' into 'C' from '{{.*}}/D.pcm' +// CHECK: remark: importing module 'C' from '{{.*[/\\]}}C.pcm' +// CHECK: remark: importing module 'D' into 'C' from '{{.*[/\\]}}D.pcm' // CHECK: remark: finished building module 'B' -// CHECK: remark: importing module 'B' from '{{.*}}/B.pcm' -// CHECK: remark: importing module 'C' into 'B' from '{{.*}}/C.pcm' -// CHECK: remark: importing module 'D' into 'C' from '{{.*}}/D.pcm' +// CHECK: remark: importing module 'B' from '{{.*[/\\]}}B.pcm' +// CHECK: remark: importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm' +// CHECK: remark: importing module 'D' into 'C' from '{{.*[/\\]}}D.pcm' // CHECK: remark: finished building module 'A' -// CHECK: remark: importing module 'A' from '{{.*}}/A.pcm' -// CHECK: remark: importing module 'B' into 'A' from '{{.*}}/B.pcm' -// CHECK: remark: importing module 'C' into 'B' from '{{.*}}/C.pcm' -// CHECK: remark: importing module 'D' into 'C' from '{{.*}}/D.pcm' +// CHECK: remark: importing module 'A' from '{{.*[/\\]}}A.pcm' +// CHECK: remark: importing module 'B' into 'A' from '{{.*[/\\]}}B.pcm' +// CHECK: remark: importing module 'C' into 'B' from '{{.*[/\\]}}C.pcm' +// CHECK: remark: importing module 'D' into 'C' from '{{.*[/\\]}}D.pcm' diff --git a/test/Modules/relative-import-path.c b/test/Modules/relative-import-path.c index 3bcb3435fd..4d988d89c3 100644 --- a/test/Modules/relative-import-path.c +++ b/test/Modules/relative-import-path.c @@ -16,11 +16,11 @@ // CHECK: remark: building module 'B' // CHECK: remark: building module 'C' // CHECK: remark: finished building module 'C' -// CHECK: remark: importing module 'C' from '[[WORKDIR]]/cache/C.pcm' +// CHECK: remark: importing module 'C' from '[[WORKDIR]]{{[/\\]cache[/\\]}}C.pcm' // CHECK: remark: finished building module 'B' -// CHECK: remark: importing module 'B' from '[[WORKDIR]]/cache/B.pcm' -// CHECK: remark: importing module 'C' into 'B' from '[[WORKDIR]]/cache/C.pcm' +// CHECK: remark: importing module 'B' from '[[WORKDIR]]{{[/\\]cache[/\\]}}B.pcm' +// CHECK: remark: importing module 'C' into 'B' from '[[WORKDIR]]{{[/\\]cache[/\\]}}C.pcm' // CHECK: remark: finished building module 'A' -// CHECK: remark: importing module 'A' from '[[WORKDIR]]/cache/A.pcm' -// CHECK: remark: importing module 'B' into 'A' from '[[WORKDIR]]/cache/B.pcm' -// CHECK: remark: importing module 'C' into 'B' from '[[WORKDIR]]/cache/C.pcm' +// CHECK: remark: importing module 'A' from '[[WORKDIR]]{{[/\\]cache[/\\]}}A.pcm' +// CHECK: remark: importing module 'B' into 'A' from '[[WORKDIR]]{{[/\\]cache[/\\]}}B.pcm' +// CHECK: remark: importing module 'C' into 'B' from '[[WORKDIR]]{{[/\\]cache[/\\]}}C.pcm'