[PATCH] ld: testsuite: Don't fail libdep test if shared library isn't found

Thiago Jung Bauermann thiago.bauermann@linaro.org
Tue Sep 3 22:02:18 GMT 2024


libdep.so isn't built if ld is configured with --disable-shared, so it's
expected that it won't be found.  Mark the test as unsupported instead.
---
 ld/testsuite/ld-plugin/libdep.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-plugin/libdep.exp b/ld/testsuite/ld-plugin/libdep.exp
index 83b087279f4a..909671047c3c 100644
--- a/ld/testsuite/ld-plugin/libdep.exp
+++ b/ld/testsuite/ld-plugin/libdep.exp
@@ -90,7 +90,7 @@ proc run_test { } {
 	set libdep_plugin "$base_dir/$lt_objdir/libdep.so"
     } else {
 	# FIXME: Check in the system bfd-plugin directory ?
-	fail "$testname - could not locate libdep plugin"
+	unsupported "$testname - could not locate libdep plugin"
 	return
     }
 


More information about the Binutils mailing list