* lib/ld-lib.exp (run_ld_link_exec_tests): Add new parameter

${targets_to_xfail} that is applied for each test item.
	* ld-elf/elf.exp: Pass *-*-netbsdelf* as an xfailed target.
This commit is contained in:
Ben Elliston 2005-07-27 21:29:12 +00:00
parent 414e5532bc
commit c8c140d941
3 changed files with 21 additions and 10 deletions

View File

@ -1,3 +1,9 @@
2005-07-28 Ben Elliston <bje@gnu.org>
* lib/ld-lib.exp (run_ld_link_exec_tests): Add new parameter
${targets_to_xfail} that is applied for each test item.
* ld-elf/elf.exp: Pass *-*-netbsdelf* as an xfailed target.
2005-07-27 Alan Modra <amodra@bigpond.net.au>
* ld-elfweak/size2a.s: Extend test to check size for two weaks.

View File

@ -43,4 +43,5 @@ set array_tests {
{"static fini array" "-static" "" {fini.c} "fini" "fini.out"}
}
run_ld_link_exec_tests $array_tests
# NetBSD ELF systems do not currently support the .*_array sections.
run_ld_link_exec_tests [list "*-*-netbsdelf*"] $array_tests

View File

@ -1263,7 +1263,8 @@ if ![string length [info proc prune_warnings]] {
}
}
# List contains test-items with 3 items followed by 1 lists, 2 items
# 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 one optional item:
# 0:name
# 1:ld options
@ -1273,7 +1274,7 @@ if ![string length [info proc prune_warnings]] {
# 5:expected output
# 6:compiler flags (optional)
proc run_ld_link_exec_tests { ldtests } {
proc run_ld_link_exec_tests { targets_to_xfail ldtests } {
global ld
global as
global srcdir
@ -1284,6 +1285,9 @@ proc run_ld_link_exec_tests { ldtests } {
global errcnt
foreach testitem $ldtests {
foreach target $targets_to_xfail {
setup_xfail $target
}
set testname [lindex $testitem 0]
set ld_options [lindex $testitem 1]
set as_options [lindex $testitem 2]