ld/testsuite: skip tests related to -shared when disabled
authorClément Chigot <chigot@adacore.com>
Fri, 4 Nov 2022 15:52:05 +0000 (16:52 +0100)
committerClément Chigot <chigot@adacore.com>
Mon, 7 Nov 2022 12:16:41 +0000 (13:16 +0100)
commit8bfb6941c358ee2da8320125644c59bf90842f6b
treec37686b1f4c11a2d7dd543b502faadc7659d423a
parent092a151a38c1bd87f25d1d03d4089a25b1bfbbc8
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.
ld/testsuite/ld-elfvers/vers.exp
ld/testsuite/ld-elfweak/elfweak.exp
ld/testsuite/ld-shared/shared.exp