[ld, testsuite] Restrict dl1*main and dl6*main tests on platforms which have libdl support

Alan Modra amodra@gmail.com
Thu Feb 2 07:13:00 GMT 2017


On Wed, Feb 01, 2017 at 05:17:07PM +0000, Jiong Wang wrote:
>         * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
>         * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
>         dlopen support into "dlopen_run_tests".  These tests include dl1*main
>         and dl6*main.
>         (dlopen_run_tests): New and only run it when check_libdl_available
>         returns true.

OK, except

> @@ -486,6 +447,54 @@ set run_tests [list \
>  # NetBSD ELF systems do not currently support the .*_array sections.
>  run_ld_link_exec_tests $run_tests "*-*-netbsdelf*"
[snip]
> +# Only run them when libdl is available.
> +if [check_libdl_available] {
> +  run_ld_link_exec_tests $dlopen_run_tests

You missed the netbsdelf xfail here.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list