summaryrefslogtreecommitdiff
path: root/test/profile/Linux/instrprof-comdat.test
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-09-23 17:40:40 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-09-23 17:40:40 +0000
commitc58c8bb0d0ce75aaf69ffcd2ca297a16cea1c11f (patch)
treecd6b1d1d24b0d53222b9e0c1db54d4e94d90e967 /test/profile/Linux/instrprof-comdat.test
parent5ab88bf41c4f7966f23e34cd28bfd1c3ed6840de (diff)
Fix the following tests when running under cross-compilation:
Profile-aarch64 :: Linux/comdat_rename.test Profile-aarch64 :: Linux/extern_template.test Profile-aarch64 :: Linux/instrprof-comdat.test Profile-aarch64 :: Linux/instrprof-cs.c The issue is that the created (aarch64) binaries were attempting to run natively instead of running through %run, which guarantees running in the proper environment if the compilation was configured correctly. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@282264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/Linux/instrprof-comdat.test')
-rw-r--r--test/profile/Linux/instrprof-comdat.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/profile/Linux/instrprof-comdat.test b/test/profile/Linux/instrprof-comdat.test
index b933e96b4..5a11a241a 100644
--- a/test/profile/Linux/instrprof-comdat.test
+++ b/test/profile/Linux/instrprof-comdat.test
@@ -1,6 +1,6 @@
RUN: mkdir -p %t.d
RUN: %clangxx_profgen -o %t.d/comdat -fcoverage-mapping -fuse-ld=gold %S/../Inputs/instrprof-comdat-1.cpp %S/../Inputs/instrprof-comdat-2.cpp
-RUN: LLVM_PROFILE_FILE=%t-comdat.profraw %t.d/comdat
+RUN: LLVM_PROFILE_FILE=%t-comdat.profraw %run %t.d/comdat
RUN: llvm-profdata merge -o %t.d/comdat.prof %t-comdat.profraw
RUN: llvm-cov show --filename-equivalence --instr-profile=%t.d/comdat.prof %t.d/comdat | FileCheck --check-prefix=HEADER %S/../Inputs/instrprof-comdat.h