diff mbox series

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

Message ID 20240903220218.741657-1-thiago.bauermann@linaro.org
State New
Headers show
Series ld: testsuite: Don't fail libdep test if shared library isn't found | expand

Commit Message

Thiago Jung Bauermann Sept. 3, 2024, 10:02 p.m. UTC
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 mbox series

Patch

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
     }