summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2019-09-16 22:32:18 +0000
committerVedant Kumar <vsk@apple.com>2019-09-16 22:32:18 +0000
commite6a6d6c9c3259a7e9b7cc1541be5dc5e2c1c8445 (patch)
treec3aa9ac30f966b973bc3691797dfb1cb875bf665
parent8626a35a71f4398bc9b654b7375a2cdb17bd735d (diff)
downloadcompiler-rt-e6a6d6c9c3259a7e9b7cc1541be5dc5e2c1c8445.tar.gz
[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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@372041 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/profile/instrprof-set-file-object-merging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/profile/instrprof-set-file-object-merging.c b/test/profile/instrprof-set-file-object-merging.c
index 3f71a8103..0ca5f6ff9 100644
--- a/test/profile/instrprof-set-file-object-merging.c
+++ b/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);