]> granicus.if.org Git - clang/commitdiff
[Coverage] Attempt to appease a Windows builder
authorVedant Kumar <vsk@apple.com>
Fri, 22 Jul 2016 00:25:09 +0000 (00:25 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 22 Jul 2016 00:25:09 +0000 (00:25 +0000)
The builder prints out the following IR:

  \5CCoverageMapping\5COutput\5Ctest\5Cf1.c

The updated test in r276367 expects path separators to be either '/' or
'\\', so it chokes on the unexpected "5C" stuff. I'm not sure what that
is, but I included a kludge that should work around it.

Failing bot:

  http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/8718

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276370 91177308-0d34-0410-b5e6-96231b3b80d8

test/CoverageMapping/abspath.cpp

index 8f9c3d134f5d925cd4fee7bea85b586f57ce212c..667172e32cf4c1540064289b0d88b79c34ec8b19 100644 (file)
@@ -9,7 +9,7 @@
 // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -main-file-name abspath.cpp ../test/f1.c -o - | FileCheck -check-prefix=RELPATH %s
 
 // RELPATH: @__llvm_coverage_mapping = {{.*}}"\01
-// RELPATH: {{[/\\]}}{{.*}}{{[/\\]}}test{{[/\\]}}f1.c
+// RELPATH: {{[/\\]}}{{.*}}{{[/\\][^/\\]*}}test{{[/\\][^/\\]*}}f1.c
 // RELPATH: "
 
 void f1() {}