summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-06-24 17:42:51 +0000
committerXinliang David Li <davidxl@google.com>2016-06-24 17:42:51 +0000
commit2114513c8398b23fc6c973e8eff176c0e1a48a6f (patch)
tree1697fe0dbdf45582003d00753bf05557a31561a7
parente0d0c119954a08e8f974b7b1a25af53722e17bcf (diff)
fix a test bug when executed remotedly
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@273693 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/profile/instrprof-hostname.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/profile/instrprof-hostname.c b/test/profile/instrprof-hostname.c
index cb141c976..b77cf8df1 100644
--- a/test/profile/instrprof-hostname.c
+++ b/test/profile/instrprof-hostname.c
@@ -1,6 +1,7 @@
// RUN: %clang_profgen -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE=%h.%t-%h.profraw_%h %run %t
-// RUN: llvm-profdata merge -o %t.profdata `uname -n`.%t-`uname -n`.profraw_`uname -n`
+// RUN: %run uname -n > %t.n
+// RUN: llvm-profdata merge -o %t.profdata `cat %t.n`.%t-`cat %t.n`.profraw_`cat %t.n`
// RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
// REQUIRES: shell