[compiler-rt] r372041 - [test] Clean up previous raw profile before merging into it
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 16 15:32:18 PDT 2019
Author: vedantk
Date: Mon Sep 16 15:32:18 2019
New Revision: 372041
URL: http://llvm.org/viewvc/llvm-project?rev=372041&view=rev
Log:
[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.
Modified:
compiler-rt/trunk/test/profile/instrprof-set-file-object-merging.c
Modified: compiler-rt/trunk/test/profile/instrprof-set-file-object-merging.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-set-file-object-merging.c?rev=372041&r1=372040&r2=372041&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/instrprof-set-file-object-merging.c (original)
+++ compiler-rt/trunk/test/profile/instrprof-set-file-object-merging.c Mon Sep 16 15:32:18 2019
@@ -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);
More information about the llvm-commits
mailing list