Skip to content

Commit 7982688

Browse files
[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.
1 parent 58c8f57 commit 7982688

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@
1515
// RUN: cp %t.correlate.exe %t/buildid/12345678/debuginfo
1616
// RUN: mkdir -p %t/debuginfod-cache
1717
// 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
18-
// RUN: diff <(llvm-profdata show --all-functions --counts %t.default.profdata) <(llvm-profdata show --all-functions --counts %t.correlate-debuginfod.profdata)
18+
// RUN: llvm-profdata show --all-functions --counts %t.default.profdata > %t.default_counts
19+
// RUN: llvm-profdata show --all-functions --counts %t.correlate-debuginfod.profdata > %t.correlated_counts
20+
// RUN: diff %t.default_counts %t.correlated_counts
1921

2022
// Test llvm-profdata merge profile correlation with --debug-file-directory option.
2123
// RUN: mkdir -p %t/.build-id/12
2224
// RUN: cp %t.correlate.exe %t/.build-id/12/345678.debug
2325
// RUN: llvm-profdata merge -o %t.correlate-debug-file-dir.profdata --debug-file-directory %t --correlate=debug-info %t.debug-info-correlate.proflite
24-
// RUN: diff <(llvm-profdata show --all-functions --counts %t.default.profdata) <(llvm-profdata show --all-functions --counts %t.correlate-debug-file-dir.profdata)
26+
// RUN: llvm-profdata show --all-functions --counts %t.correlate-debug-file-dir.profdata > %t.correlated_debug_file_dir_counts
27+
// RUN: diff %t.default_counts %t.correlated_debug_file_dir_counts

0 commit comments

Comments
 (0)