From 4a0e4f68a39c19c27456c9925c9dc85a3617ebad Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Fri, 19 Nov 2021 15:48:53 +0000 Subject: [PATCH] libphobos, testsuite: Add prune clauses for two Darwin cases. Depending on the permutation of CPU, OS version and shared/non- shared library inclusion, we get can get two warnings from the external tools (ld64, dsymutil) which are not actually GCC issues but relate to the external tools. These are alrrady pruned in the main testsuite, this adds them to the library. Signed-off-by: Iain Sandoe libphobos/ChangeLog: * testsuite/lib/libphobos.exp: Prune warnings from external tool bugs. (cherry picked from commit 532fae74c3b1197023a765272892e12e123f0a56) --- libphobos/testsuite/lib/libphobos.exp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libphobos/testsuite/lib/libphobos.exp b/libphobos/testsuite/lib/libphobos.exp index 3be2092b12ee..2af430a0e456 100644 --- a/libphobos/testsuite/lib/libphobos.exp +++ b/libphobos/testsuite/lib/libphobos.exp @@ -90,6 +90,13 @@ proc libphobos-dg-test { prog do_what extra_tool_flags } { } proc libphobos-dg-prune { system text } { + + # Ignore harmless warnings from Xcode. + regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact unwind for\[^\n\]*" $text "" text + + # Ignore dsymutil warning (tool bug is actually linker) + regsub -all "(^|\n)\[^\n\]*could not find object file symbol for symbol\[^\n\]*" $text "" text + return $text } -- 2.47.2