Vedant Kumar | 2ca5eaa | 2016-06-29 16:23:34 +0000 | [diff] [blame] | 1 | // To create the covmapping for this file, copy this file to /tmp/dots/, |
Vedant Kumar | 4a54abe | 2016-06-29 16:22:12 +0000 | [diff] [blame] | 2 | // cd into /tmp/dots, and pass "../dots/double_dots.c" to the compiler. Use |
| 3 | // llvm-cov convert-for-testing to extract the covmapping. |
| 4 | |
| 5 | // RUN: llvm-profdata merge %S/Inputs/double_dots.proftext -o %t.profdata |
| 6 | // RUN: llvm-cov show %S/Inputs/double_dots.covmapping -instr-profile=%t.profdata -o %t.dir |
| 7 | // RUN: FileCheck -input-file=%t.dir/index.txt %s |
| 8 | |
| 9 | // CHECK-NOT: coverage{{.*}}dots{{.*}}..{{.*}}dots |
| 10 | |
| 11 | int main() {} |
Vedant Kumar | d6d192c | 2016-06-29 21:55:46 +0000 | [diff] [blame^] | 12 | |
| 13 | // Re-purpose this file to test that we use relative paths when creating |
| 14 | // report indices: |
| 15 | |
| 16 | // RUN: FileCheck -check-prefix=REL-INDEX -input-file %t.dir/index.txt %s |
| 17 | // REL-INDEX-NOT: %t.dir |