Skip to content

Commit 841d85f

Browse files
[Profile] Rewrite Test to work with Internal Shell
There was one test that used subshells to read a file. Replace those subshells with the readfile substitution. Reviewers: fmayer, mingmingl-llvm Reviewed By: mingmingl-llvm, fmayer Pull Request: #165145
1 parent fdf5ece commit 841d85f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/profile/instrprof-hostname.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clang_profgen -o %t -O3 %s
22
// RUN: env LLVM_PROFILE_FILE=%h.%t-%h.profraw_%h %run %t
3-
// RUN: %run uname -n > %t.n
4-
// RUN: llvm-profdata merge -o %t.profdata `cat %t.n`.%t-`cat %t.n`.profraw_`cat %t.n`
3+
// RUN: %run uname -n | tr -d '\n' > %t.n
4+
// RUN: llvm-profdata merge -o %t.profdata %{readfile:%t.n}.%t-%{readfile:%t.n}.profraw_%{readfile:%t.n}
55
// RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
66
// REQUIRES: shell
77

0 commit comments

Comments
 (0)