2016-07-21 Alan Modra <amodra@gmail.com>
+ * 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.
+
+2016-07-21 Alan Modra <amodra@gmail.com>
+
* testsuite/lib/ld-lib.exp (run_ld_link_tests): Add optional
parameter to pass list of xfails.
* testsuite/ld-elf/elf.exp: Add xfails for implib tests. Tidy
}
run_cc_link_tests $build_tests
-run_ld_link_exec_tests [] $run_tests
+run_ld_link_exec_tests $run_tests
set test_name "Link with zlib-gabi compressed debug input"
send_log "cmp tmpdir/libfoo.so tmpdir/libfoozlib.so\n"
}
run_cc_link_tests $build_tests
-run_ld_link_exec_tests [] $run_tests
+run_ld_link_exec_tests $run_tests
proc strip_test {} {
global ld
}
# 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
{pr19553a.c} "pr19553d" "pr19553d.out"}
}
-run_ld_link_exec_tests [] $run_tests
+run_ld_link_exec_tests $run_tests
}
# NetBSD ELF systems do not currently support the .*_array sections.
-run_ld_link_exec_tests [list "*-*-netbsdelf*"] $run_tests
+run_ld_link_exec_tests $run_tests "*-*-netbsdelf*"
# Check --no-add-needed and --no-copy-dt-needed-entries
set testname "--no-add-needed"
}
run_cc_link_tests $build_cxx_tests
-run_ld_link_exec_tests [] $run_cxx_tests
+run_ld_link_exec_tests $run_cxx_tests
if { [istarget *-*-linux*]
|| [istarget *-*-nacl*]
"libpr19579.so" \
] \
]
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run pr2404 with PIE" \
"-pie tmpdir/pr2404b.o tmpdir/libpr2404a.so" \
send_log "cp tmpdir/libpr19719b.so tmpdir/libpr19719.so\n"
exec cp tmpdir/libpr19719b.so tmpdir/libpr19719.so
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run $exe fun defined" \
"$ldflags tmpdir/libpr19719b.o tmpdir/libpr19719.so -rpath tmpdir" \
}
run_cc_link_tests $build_tests
-run_ld_link_exec_tests [] $run_tests
+run_ld_link_exec_tests $run_tests
exec cp tmpdir/libpr19704a.so tmpdir/libpr19704.so
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run pr19704" \
"$ldflags tmpdir/libpr19704.so -R tmpdir" \
] \
]
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run plt-main" \
"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
] \
]
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run ifunc-1a" \
"tmpdir/ifunc-1a.o tmpdir/ifunc-1b.o \
] \
]
-run_ld_link_exec_tests [] [list \
+run_ld_link_exec_tests [list \
[list \
"No PLT (dynamic 1a)" \
"tmpdir/no-plt-check1a.o tmpdir/no-plt-main1.o \
] \
]
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run pr20244-3a" \
"tmpdir/pr20244-3a.o tmpdir/pr20244-3b.o \
] \
]
-run_ld_link_exec_tests [] [list \
+run_ld_link_exec_tests [list \
[list \
"TLS GD/LD -> LE transition without PLT (dynamic)" \
"tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
] \
]
-run_ld_link_exec_tests [] [list \
+run_ld_link_exec_tests [list \
[list \
"Common symbol override ifunc test 1a" \
"-static" \
] \
]
-run_ld_link_exec_tests [] [list \
+run_ld_link_exec_tests [list \
[list \
"Run pr16467" \
"tmpdir/pr16467c.o tmpdir/libpr16467b.so tmpdir/libpr16467a.so" \
] \
]
-run_ld_link_exec_tests [] [list \
+run_ld_link_exec_tests [list \
[list \
"Run pr18808" \
"tmpdir/pr18808a.o tmpdir/libpr18808.so" \
{"weak undefined data" "-pie" "" {weakundef-data.c} "weakundef-data" "weakundef.out" "-fPIC"}
}
-run_ld_link_exec_tests [] $array_tests
+run_ld_link_exec_tests $array_tests
set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
foreach t $test_list {
return
}
-run_ld_link_exec_tests [] $lto_run_tests
+run_ld_link_exec_tests $lto_run_tests
if { [is_elf_format] } {
- run_ld_link_exec_tests [] $lto_run_elf_tests
+ run_ld_link_exec_tests $lto_run_elf_tests
}
proc pr20103 {cflags libs} {
}
# Run-time size relocation tests.
-run_ld_link_exec_tests [] [list \
+run_ld_link_exec_tests [list \
[list \
"Run size-1" \
"tmpdir/libsize-1.so" \
{mpx4a.s} {{objdump -dw mpx4.dd}} "mpx4"}
}
-run_ld_link_exec_tests [] $run_tests
+run_ld_link_exec_tests $run_tests
run_dump_test "bnd-branch-1"
run_dump_test "bnd-ifunc-1"
] \
]
-run_ld_link_exec_tests [] [list \
+run_ld_link_exec_tests [list \
[list \
"No PLT (dynamic 1a)" \
"tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
] \
]
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run pr20253-2a" \
"tmpdir/pr20253-2a.o tmpdir/pr20253-2b.o \
] \
]
-run_ld_link_exec_tests [] [list \
+run_ld_link_exec_tests [list \
[list \
"TLS GD/LD -> LE transition without PLT (dynamic)" \
"tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
exec cp tmpdir/libpr19704a.so tmpdir/libpr19704.so
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run pr19704" \
"$ldflags tmpdir/libpr19704.so -R tmpdir" \
] \
]
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run plt-main" \
"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
] \
]
- run_ld_link_exec_tests [] [list \
+ run_ld_link_exec_tests [list \
[list \
"Run plt-main with -z bndplt" \
"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
}
}
-# targets_to_xfail is a list of target triplets to be xfailed.
# ldtests contains test-items with 3 items followed by 1 lists, 2 items
# and 3 optional items:
# 0:name
# 6:compiler flags (optional)
# 7:language (optional)
# 8:linker warning (optional)
+# args is an optional list of target triplets to be xfailed.
-proc run_ld_link_exec_tests { targets_to_xfail ldtests } {
+proc run_ld_link_exec_tests { ldtests args } {
global ld
global as
global srcdir
global exec_output
foreach testitem $ldtests {
- foreach target $targets_to_xfail {
+ foreach target $args {
setup_xfail $target
}
set testname [lindex $testitem 0]