diff options
| author | Vedant Kumar <vsk@apple.com> | 2019-09-16 22:32:18 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2019-09-16 22:32:18 +0000 |
| commit | c693aa3def0191634d1dac78ff1b62ef629a89bc (patch) | |
| tree | 6d039ec2395884bb562864b7670ed031c388ae7b | |
| parent | 87afb22707f7efa9545164d2889e1f2bbf05acc8 (diff) | |
| download | bcm5719-llvm-c693aa3def0191634d1dac78ff1b62ef629a89bc.tar.gz bcm5719-llvm-c693aa3def0191634d1dac78ff1b62ef629a89bc.zip | |
[test] Clean up previous raw profile before merging into it
This fixes a test failure in instrprof-set-file-object-merging.c which
seems to have been caused by reuse of stale data in old raw profiles.
llvm-svn: 372041
| -rw-r--r-- | compiler-rt/test/profile/instrprof-set-file-object-merging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/profile/instrprof-set-file-object-merging.c b/compiler-rt/test/profile/instrprof-set-file-object-merging.c index 3f71a810356..0ca5f6ff9ed 100644 --- a/compiler-rt/test/profile/instrprof-set-file-object-merging.c +++ b/compiler-rt/test/profile/instrprof-set-file-object-merging.c @@ -1,12 +1,12 @@ // Test that the specified output merges the profiling data. // Run the program twice so that the counters accumulate. // RUN: %clang -fprofile-instr-generate -fcoverage-mapping -o %t %s +// RUN: rm -f %t.merging.profraw %t.merging.profdata // RUN: %run %t %t.merging.profraw // RUN: %run %t %t.merging.profraw // RUN: test -f %t.merging.profraw // RUN: llvm-profdata merge -o %t.merging.profdata %t.merging.profraw // RUN: llvm-cov show -instr-profile %t.merging.profdata %t | FileCheck %s --match-full-lines -// RUN: rm %t.merging.profdata %t.merging.profraw #include <stdio.h> extern void __llvm_profile_set_file_object(FILE *, int); |

