[compiler-rt] r273693 - fix a test bug when executed remotedly

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 10:42:52 PDT 2016


Author: davidxl
Date: Fri Jun 24 12:42:51 2016
New Revision: 273693

URL: http://llvm.org/viewvc/llvm-project?rev=273693&view=rev
Log:
fix a test bug when executed remotedly

Modified:
    compiler-rt/trunk/test/profile/instrprof-hostname.c

Modified: compiler-rt/trunk/test/profile/instrprof-hostname.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-hostname.c?rev=273693&r1=273692&r2=273693&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/instrprof-hostname.c (original)
+++ compiler-rt/trunk/test/profile/instrprof-hostname.c Fri Jun 24 12:42:51 2016
@@ -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
 




More information about the llvm-commits mailing list