aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-shared
diff options
context:
space:
mode:
authorClément Chigot <chigot@adacore.com>2022-11-04 16:52:05 +0100
committerClément Chigot <chigot@adacore.com>2022-11-07 13:16:41 +0100
commit8bfb6941c358ee2da8320125644c59bf90842f6b (patch)
treec37686b1f4c11a2d7dd543b502faadc7659d423a /ld/testsuite/ld-shared
parent092a151a38c1bd87f25d1d03d4089a25b1bfbbc8 (diff)
downloadgdb-8bfb6941c358ee2da8320125644c59bf90842f6b.zip
gdb-8bfb6941c358ee2da8320125644c59bf90842f6b.tar.gz
gdb-8bfb6941c358ee2da8320125644c59bf90842f6b.tar.bz2
ld/testsuite: skip tests related to -shared when disabled
Call the helper function "check_shared_lib_support" to ensure -shared is enabled before launching ld-shared, ld-elfweak and ld-elfvers. This allows to catch custom targets explicitly disabling it. ld/ChangeLog: * testsuite/ld-elfvers/vers.exp: Call check_shared_lib_support. * testsuite/ld-elfweak/elfweak.exp: Likewise. * testsuite/ld-shared/shared.exp: Likewise.
Diffstat (limited to 'ld/testsuite/ld-shared')
-rw-r--r--ld/testsuite/ld-shared/shared.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index 229fddb..94e03fc 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -30,6 +30,11 @@ if { ![check_compiler_available] } {
return
}
+# Skip targets where -shared is not supported
+if { ![check_shared_lib_support] } {
+ return
+}
+
# This test can only be run on a couple of ELF platforms.
# Square bracket expressions seem to confuse istarget.
if { ![istarget hppa*64*-*-hpux*] \