[compiler-rt] [compiler-rt] Fix instrprof-darwin-exports test (PR #67487)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 13:48:29 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-pgo
<details>
<summary>Changes</summary>
The test currently misses to filter __mh_execute_header in one case which can cause it to fail.
---
Full diff: https://github.com/llvm/llvm-project/pull/67487.diff
1 Files Affected:
- (modified) compiler-rt/test/profile/instrprof-darwin-exports.c (+1-1)
``````````diff
diff --git a/compiler-rt/test/profile/instrprof-darwin-exports.c b/compiler-rt/test/profile/instrprof-darwin-exports.c
index 5e5f69b91cb80dd..079d5d28ed24d9b 100644
--- a/compiler-rt/test/profile/instrprof-darwin-exports.c
+++ b/compiler-rt/test/profile/instrprof-darwin-exports.c
@@ -22,7 +22,7 @@
//
// RUN: %clang_pgogen -Werror -o %t.default %s
// RUN: nm -jUg %t.default | grep -v __mh_execute_header > %t.default.exports
-// RUN: nm -jUg %t > %t.clang.exports
+// RUN: nm -jUg %t | grep -v __mh_execute_header > %t.clang.exports
// RUN: diff %t.default.exports %t.clang.exports
// 4) Ditto (3), but for GCOV.
``````````
</details>
https://github.com/llvm/llvm-project/pull/67487
More information about the llvm-commits
mailing list