<div dir="rtl"><div dir="ltr">This issue is surfacing regulary. In cases where clang prints the escaped path we have to use {{/\\\\} which is not very readable, for example in mingw driver case:</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">// CHECK_MINGW_ORG_TREE: "{{.*}}/Inputs/mingw_mingw_org_tree/mingw{{/|\\\\}}lib{{/|\\\\}}gcc{{/|\\\\}}mingw32{{/|\\\\}}4.8.1{{/|\\\\}}include{{/|\\\\}}c++"</div><div><br></div><div>Could we allow FileCheck to always accept \  and \\ as matches for / or would that too sloppy?</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-08-10 5:56 GMT+03:00 Richard Smith via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><p dir="ltr">On Aug 9, 2015 3:56 PM, "NAKAMURA Takumi via cfe-commits" <<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>> wrote:<br>
><br>
> Author: chapuni<br>
> Date: Sun Aug  9 17:55:50 2015<br>
> New Revision: 244427<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=244427&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=244427&view=rev</a><br>
> Log:<br>
> clang/test/Modules: Satisfy win32 hosts due to dospath issue.</p>
</span><p dir="ltr">Thanks!</p><div><div class="h5">
<p dir="ltr">> Modified:<br>
>     cfe/trunk/test/Modules/dependency-gen.modulemap<br>
>     cfe/trunk/test/Modules/explicit-build.cpp<br>
>     cfe/trunk/test/Modules/relative-dep-gen.cpp<br>
><br>
> Modified: cfe/trunk/test/Modules/dependency-gen.modulemap<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/dependency-gen.modulemap?rev=244427&r1=244426&r2=244427&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/dependency-gen.modulemap?rev=244427&r1=244426&r2=244427&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/test/Modules/dependency-gen.modulemap (original)<br>
> +++ cfe/trunk/test/Modules/dependency-gen.modulemap Sun Aug  9 17:55:50 2015<br>
> @@ -39,5 +39,5 @@ extern module "test-base" "Inputs/depend<br>
>  // EXPLICIT-FIXME: {{.*}}/base.pcm<br>
>  //<br>
>  // EXPLICIT: {{^}}explicit.pcm:<br>
> -// EXPLICIT: {{.*}}/dependency-gen.modulemap<br>
> +// EXPLICIT: {{.*[/\\]}}dependency-gen.modulemap<br>
>  // EXPLICIT: {{ |\.[/\\]}}Inputs{{[/\\]}}dependency-gen.h<br>
><br>
> Modified: cfe/trunk/test/Modules/explicit-build.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/explicit-build.cpp?rev=244427&r1=244426&r2=244427&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/explicit-build.cpp?rev=244427&r1=244426&r2=244427&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/test/Modules/explicit-build.cpp (original)<br>
> +++ cfe/trunk/test/Modules/explicit-build.cpp Sun Aug  9 17:55:50 2015<br>
> @@ -138,7 +138,7 @@<br>
>  // RUN:            -fmodule-map-file=%S/Inputs/explicit-build/module.modulemap \<br>
>  // RUN:            %s 2>&1 | FileCheck --check-prefix=CHECK-MULTIPLE-AS %s<br>
>  //<br>
> -// CHECK-MULTIPLE-AS: error: module 'a' is defined in both '{{.*}}/a{{.*}}.pcm' and '{{.*[/\\]}}a{{.*}}.pcm'<br>
> +// CHECK-MULTIPLE-AS: error: module 'a' is defined in both '{{.*[/\\]}}a{{.*}}.pcm' and '{{.*[/\\]}}a{{.*}}.pcm'<br>
><br>
>  // -------------------------------<br>
>  // Try to import a PCH with -fmodule-file=<br>
><br>
> Modified: cfe/trunk/test/Modules/relative-dep-gen.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/relative-dep-gen.cpp?rev=244427&r1=244426&r2=244427&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/relative-dep-gen.cpp?rev=244427&r1=244426&r2=244427&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/test/Modules/relative-dep-gen.cpp (original)<br>
> +++ cfe/trunk/test/Modules/relative-dep-gen.cpp Sun Aug  9 17:55:50 2015<br>
> @@ -27,4 +27,4 @@<br>
>  // CHECK-USE: use.o:<br>
>  // CHECK-USE-DAG:   Inputs/relative-dep-gen{{(-cwd)?}}.modulemap</p>
</div></div><p dir="ltr">Is this one OK?</p><div class="HOEnZb"><div class="h5">
<p dir="ltr">>  // CHECK-USE-DAG:   relative-dep-gen.cpp<br>
> -// CHECK-USE-DAG:   Inputs/relative-dep-gen-1.h<br>
> +// CHECK-USE-DAG:   Inputs{{[/\\]}}relative-dep-gen-1.h<br>
><br>
><br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</p>
</div></div><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>