forked from OSchip/llvm-project
[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. llvm-svn: 276367
This commit is contained in:
parent
1182dd8ed9
commit
fe28a0fdd5
|
@ -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() {}
|
||||
|
|
Loading…
Reference in New Issue