diff options
Diffstat (limited to 'ld/testsuite/ld-elf/elf.exp')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 0c82197..8dbb2c3 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -28,3 +28,19 @@ foreach t $test_list { verbose [file rootname $t] run_dump_test [file rootname $t] } + +# The following tests require running the executable generated by ld. +if ![isnative] { + return +} + +set array_tests { + {"preinit array" "" "" {preinit.c} "preinit" "preinit.out"} + {"static preinit array" "-static" "" {preinit.c} "preinit" "preinit.out"} + {"init array" "" "" {init.c} "init" "init.out"} + {"static init array" "-static" "" {init.c} "init" "init.out"} + {"fini array" "" "" {fini.c} "fini" "fini.out"} + {"static fini array" "-static" "" {fini.c} "fini" "fini.out"} +} + +run_ld_link_exec_tests $array_tests |