[compiler-rt] 72059be - [compiler-rt][Profile] Mark Darwin test work with internal shell

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 09:54:18 PST 2025


Author: Aiden Grossman
Date: 2025-11-17T09:54:08-08:00
New Revision: 72059bebb3a9427dc70723a37e4c38adfa44553a

URL: https://github.com/llvm/llvm-project/commit/72059bebb3a9427dc70723a37e4c38adfa44553a
DIFF: https://github.com/llvm/llvm-project/commit/72059bebb3a9427dc70723a37e4c38adfa44553a.diff

LOG: [compiler-rt][Profile] Mark Darwin test work with internal shell

This test was using subshells and then passing the results to diff. Write out
the results to files before passing to diff as the internal shell does not
support subshells.

Added: 
    

Modified: 
    compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c b/compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c
index 46d25a4e386dc..1e9bd11d3f49c 100644
--- a/compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c
+++ b/compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c
@@ -7,7 +7,9 @@
 // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.normal
 // RUN: llvm-profdata merge -o %t.normal.profdata %t.profraw
 
-// RUN: 
diff  <(llvm-profdata show --all-functions --counts %t.normal.profdata) <(llvm-profdata show --all-functions --counts %t.profdata)
+// RUN: llvm-profdata show --all-functions --counts %t.normal.profdata > %t.normal.functions
+// RUN: llvm-profdata show --all-functions --counts %t.profdata > %t.functions
+// RUN: 
diff  %t.normal.functions %t.functions
 
 // RUN: %clang_pgogen -o %t.cov -g -mllvm --profile-correlate=debug-info -mllvm -pgo-function-entry-coverage -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
 // RUN: env LLVM_PROFILE_FILE=%t.cov.proflite %run %t.cov
@@ -17,7 +19,9 @@
 // RUN: env LLVM_PROFILE_FILE=%t.cov.profraw %run %t.cov.normal
 // RUN: llvm-profdata merge -o %t.cov.normal.profdata %t.cov.profraw
 
-// RUN: 
diff  <(llvm-profdata show --all-functions --counts %t.cov.normal.profdata) <(llvm-profdata show --all-functions --counts %t.cov.profdata)
+// RUN: llvm-profdata show --all-functions --counts %t.cov.normal.profdata > %t.cov.normal.functions
+// RUN: llvm-profdata show --all-functions --counts %t.cov.profdata > %t.cov.functions
+// RUN: 
diff  %t.cov.normal.functions %t.cov.functions
 
 // Test debug info correlate with online merging.
 
@@ -30,11 +34,15 @@
 // RUN: env LLVM_PROFILE_FILE=%t.profdir/%m.proflite %run %t
 // RUN: llvm-profdata merge -o %t.profdata --debug-info=%t.dSYM %t.profdir/
 
-// RUN: 
diff  <(llvm-profdata show --all-functions --counts %t.normal.profdata) <(llvm-profdata show --all-functions --counts %t.profdata)
+// RUN: llvm-profdata show --all-functions --counts %t.normal.profdata > %t.normal.functions
+// RUN: llvm-profdata show --all-functions --counts %t.profdata > %t.functions
+// RUN: 
diff  %t.normal.functions %t.functions
 
 // RUN: rm -rf %t.profdir && mkdir %t.profdir
 // RUN: env LLVM_PROFILE_FILE=%t.profdir/%m.cov.proflite %run %t.cov
 // RUN: env LLVM_PROFILE_FILE=%t.profdir/%m.cov.proflite %run %t.cov
 // RUN: llvm-profdata merge -o %t.cov.profdata --debug-info=%t.cov.dSYM %t.profdir/
 
-// RUN: 
diff  <(llvm-profdata show --all-functions --counts %t.cov.normal.profdata) <(llvm-profdata show --all-functions --counts %t.cov.profdata)
+// RUN: llvm-profdata show --all-functions --counts %t.cov.normal.profdata > %t.cov.normal.functions
+// RUN: llvm-profdata show --all-functions --counts %t.cov.profdata > %t.cov.functions
+// RUN: 
diff  %t.cov.normal.functions %t.cov.functions


        


More information about the llvm-commits mailing list