[compiler-rt] 7982688 - [Profile] Fix debuginfod test with internal shell

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 5 13:38:37 PST 2025


Author: Aiden Grossman
Date: 2025-12-05T21:38:29Z
New Revision: 7982688b69c75ff40f34184438d3ef7e905ff006

URL: https://github.com/llvm/llvm-project/commit/7982688b69c75ff40f34184438d3ef7e905ff006
DIFF: https://github.com/llvm/llvm-project/commit/7982688b69c75ff40f34184438d3ef7e905ff006.diff

LOG: [Profile] Fix debuginfod test with internal shell

The recent relanding of the internal shell broke one of the debuginfod
tests as it is not tested by any upstream buildbot due to the use of
curl. Rewriting the test to not use subshells is pretty simple.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/Linux/instrprof-debug-info-correlate-debuginfod.c b/compiler-rt/test/profile/Linux/instrprof-debug-info-correlate-debuginfod.c
index 903ead31e0f60..a4e98553fe2a3 100644
--- a/compiler-rt/test/profile/Linux/instrprof-debug-info-correlate-debuginfod.c
+++ b/compiler-rt/test/profile/Linux/instrprof-debug-info-correlate-debuginfod.c
@@ -15,10 +15,13 @@
 // RUN: cp %t.correlate.exe %t/buildid/12345678/debuginfo
 // RUN: mkdir -p %t/debuginfod-cache
 // RUN: env DEBUGINFOD_CACHE_PATH=%t/debuginfod-cache DEBUGINFOD_URLS=file://%t llvm-profdata merge -o %t.correlate-debuginfod.profdata --debuginfod --correlate=debug-info %t.debug-info-correlate.proflite
-// RUN: 
diff  <(llvm-profdata show --all-functions --counts %t.default.profdata) <(llvm-profdata show --all-functions --counts %t.correlate-debuginfod.profdata)
+// RUN: llvm-profdata show --all-functions --counts %t.default.profdata > %t.default_counts
+// RUN: llvm-profdata show --all-functions --counts %t.correlate-debuginfod.profdata > %t.correlated_counts
+// RUN: 
diff  %t.default_counts %t.correlated_counts
 
 // Test llvm-profdata merge profile correlation with --debug-file-directory option.
 // RUN: mkdir -p %t/.build-id/12
 // RUN: cp %t.correlate.exe %t/.build-id/12/345678.debug
 // RUN: llvm-profdata merge -o %t.correlate-debug-file-dir.profdata --debug-file-directory %t --correlate=debug-info %t.debug-info-correlate.proflite
-// RUN: 
diff  <(llvm-profdata show --all-functions --counts %t.default.profdata) <(llvm-profdata show --all-functions --counts %t.correlate-debug-file-dir.profdata)
+// RUN: llvm-profdata show --all-functions --counts %t.correlate-debug-file-dir.profdata > %t.correlated_debug_file_dir_counts
+// RUN: 
diff  %t.default_counts %t.correlated_debug_file_dir_counts


        


More information about the llvm-commits mailing list