Fix ld-plugin test

Kirill A. Shutemov kirill@shutemov.name
Tue Nov 2 13:53:00 GMT 2010


One of ld-plugin tests fails if CFLAGS doesn't contain -g.

Let's fix it by relaxing dump pattern.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
---
 plugin-6.d |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-plugin/plugin-6.d b/ld/testsuite/ld-plugin/plugin-6.d
index cb9257d..d107d29 100644
--- a/ld/testsuite/ld-plugin/plugin-6.d
+++ b/ld/testsuite/ld-plugin/plugin-6.d
@@ -26,6 +26,6 @@ hook called: claim_file tmpdir/text.o \[@0/.* not claimed
 #...
 hook called: all symbols read.
 tmpdir/main.o: In function `main':
-.*ld/testsuite/ld-plugin/main.c:12: undefined reference to `func'
+.*main.c.*: undefined reference to `func'
 hook called: cleanup.
 #...

-- 
 Kirill A. Shutemov



More information about the Binutils mailing list