diff options
author | Vedant Kumar <vsk@apple.com> | 2016-07-22 00:00:02 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-07-22 00:00:02 +0000 |
commit | dea4d0c29d56a974eb5214ab2ca2dcd72f33ad14 (patch) | |
tree | de9e68d3c4970cdc430dfe9f8fcb193b88cea443 /test/CoverageMapping | |
parent | 887e0c0ff4e75920ef06d921c79802eb4701e90a (diff) |
[Coverage] Strengthen a test case
We should be able to use `mkdir` without turning on `REQUIRES: shell`.
Moreover, this test should check for a path separator which precedes the
relative filename to make sure that absolute paths are being used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CoverageMapping')
-rw-r--r-- | test/CoverageMapping/abspath.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/CoverageMapping/abspath.cpp b/test/CoverageMapping/abspath.cpp index dfdf10f425..8f9c3d134f 100644 --- a/test/CoverageMapping/abspath.cpp +++ b/test/CoverageMapping/abspath.cpp @@ -1,6 +1,3 @@ -// This test requires mkdir. -// REQUIRES: shell -// // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -main-file-name abspath.cpp %S/Inputs/../abspath.cpp -o - | FileCheck -check-prefix=RMDOTS %s // RMDOTS: @__llvm_coverage_mapping = {{.*}}"\01 @@ -12,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() {} |