[compiler-rt] [compiler-rt] Fix instrprof-darwin-exports test (PR #67487)

David Tellenbach via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 13:47:22 PDT 2023


https://github.com/dtellenbach created https://github.com/llvm/llvm-project/pull/67487

The test currently misses to filter __mh_execute_header in one case which can cause it to fail.

>From 7dd6376dd38cc8200101aa54009f8d42e5a25922 Mon Sep 17 00:00:00 2001
From: David Tellenbach <dtellenbach at apple.com>
Date: Tue, 26 Sep 2023 13:41:53 -0700
Subject: [PATCH] [compiler-rt] Fix instrprof-darwin-exports test

The test currently misses to filter __mh_execute_header in one case
which can cause it to fail.
---
 compiler-rt/test/profile/instrprof-darwin-exports.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.



More information about the llvm-commits mailing list