diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2019-10-10 12:20:11 +0000 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2019-10-10 12:20:11 +0000 |
commit | 62808631acceaa8b78f8ab9b407eb6b943ff5f77 (patch) | |
tree | 7ed3f9665369500ddef322402f52cefe547334d8 /clang/test/CoverageMapping | |
parent | 44506cd7f2b0758d37611d405beb6eb1f6f90f17 (diff) | |
download | bcm5719-llvm-62808631acceaa8b78f8ab9b407eb6b943ff5f77.tar.gz bcm5719-llvm-62808631acceaa8b78f8ab9b407eb6b943ff5f77.zip |
Revert "Use -fdebug-compilation-dir to form absolute paths in coverage mappings"
This reverts commit f6777964bde28c349d3e289ea37ecf5f5eeedbc4.
Because the absolute path check relies on temporary path containing
"clang", "test" and "CoverageMapping" as a subsequence, which is not
necessarily true on all systems(breaks internal integrates). Wanted to
fix it by checking for a leading "/" instead, but then noticed that it
would break windows tests, so leaving it to the author instead.
llvm-svn: 374324
Diffstat (limited to 'clang/test/CoverageMapping')
-rw-r--r-- | clang/test/CoverageMapping/debug-dir.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/test/CoverageMapping/debug-dir.cpp b/clang/test/CoverageMapping/debug-dir.cpp deleted file mode 100644 index adc8a167830..00000000000 --- a/clang/test/CoverageMapping/debug-dir.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// %s expands to an absolute path, so to test relative paths we need to create a -// clean directory, put the source there, and cd into it. -// RUN: rm -rf %t -// RUN: mkdir -p %t/foobar -// RUN: cd %t -// RUN: cp %s foobar/debug-dir.cpp - -// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -main-file-name debug-dir.cpp foobar/debug-dir.cpp -o - | FileCheck -check-prefix=ABSOLUTE %s -// -// ABSOLUTE: @__llvm_coverage_mapping = {{.*"\\01.*clang.*test.*CoverageMapping.*.*foobar.*debug-dir\.cpp}} - -// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -emit-llvm -main-file-name debug-dir.cpp foobar/debug-dir.cpp -fdebug-compilation-dir . -o - | FileCheck -check-prefix=RELATIVE %s -// -// RELATIVE: @__llvm_coverage_mapping = {{.*"\\01[^/]*foobar.*debug-dir\.cpp}} - -void f1() {} |