diff options
author | Alan Modra <amodra@gmail.com> | 2016-07-21 09:36:37 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-07-21 11:34:45 +0930 |
commit | 982c6f2665bad6c8fec6ee75ffb3c5af60a285a6 (patch) | |
tree | 93a85317ceb0e64a02d3ecf593e3e11d8b62d7af /ld/testsuite/ld-elf/elf.exp | |
parent | 5df1bc570fcc5ef5257b7a044acdaeb6b95b9822 (diff) | |
download | gdb-982c6f2665bad6c8fec6ee75ffb3c5af60a285a6.zip gdb-982c6f2665bad6c8fec6ee75ffb3c5af60a285a6.tar.gz gdb-982c6f2665bad6c8fec6ee75ffb3c5af60a285a6.tar.bz2 |
Use variable args in run_ld_link_exec_tests
If the last parameter of a tcl function is "args" then it can take
zero or more arguments. Make use of this language feature in
run_ld_link_exec_tests.
* testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Replace
"targets_to_xfail" parameter with "args".
* testsuite/ld-elf/compress.exp: Remove empty list of xfails on
all calls to run_ld_link_exec_tests.
* testsuite/ld-elf/dwarf.exp: Likewise.
* testsuite/ld-elf/indirect.exp: Likewise.
* testsuite/ld-elf/wrap.exp: Likewise.
* testsuite/ld-i386/i386.exp: Likewise.
* testsuite/ld-i386/no-plt.exp: Likewise.
* testsuite/ld-i386/tls.exp: Likewise.
* testsuite/ld-ifunc/ifunc.exp: Likewise.
* testsuite/ld-pie/pie.exp: Likewise.
* testsuite/ld-plugin/lto.exp: Likewise.
* testsuite/ld-size/size.exp: Likewise.
* testsuite/ld-x86-64/mpx.exp: Likewise.
* testsuite/ld-x86-64/no-plt.exp: Likewise.
* testsuite/ld-x86-64/tls.exp: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-elf/elf.exp: Likewise. Reorder args when providing
xfails and simplify lists.
* testsuite/ld-elf/shared.exp: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/elf.exp')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index b67105f..872e7f1 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -240,22 +240,22 @@ set array_tests_static { } # NetBSD ELF systems do not currently support the .*_array sections. -set xfails [list "*-*-netbsdelf*"] -run_ld_link_exec_tests $xfails $array_tests +set xfails "*-*-netbsdelf*" +run_ld_link_exec_tests $array_tests $xfails if { [istarget *-*-linux*] || [istarget *-*-nacl*] || [istarget *-*-gnu*] } { - run_ld_link_exec_tests $xfails $array_tests_pie + run_ld_link_exec_tests $array_tests_pie $xfails } +# <http://www.gnu.org/software/hurd/open_issues/binutils.html#static> # Be cautious to not XFAIL for *-*-linux-gnu*, *-*-kfreebsd-gnu*, etc. switch -regexp $target_triplet { ^\[^-\]*-\[^-\]*-gnu.*$ { - # <http://www.gnu.org/software/hurd/open_issues/binutils.html#static> - lappend xfails "*-*-*" + set xfails "*-*-*" } } -run_ld_link_exec_tests $xfails $array_tests_static +run_ld_link_exec_tests $array_tests_static $xfails catch "exec rm -f tmpdir/preinit tmpdir/init tmpdir/fini tmpdir/init-mixed" status |