From c8c140d941507603c4927fb3f1bcb79b5edf062c Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Wed, 27 Jul 2005 21:29:12 +0000 Subject: [PATCH] * 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. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/elf.exp | 3 ++- ld/testsuite/lib/ld-lib.exp | 24 ++++++++++++++---------- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 3c06eb076a3..f22a81a6710 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-07-28 Ben Elliston + + * 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 * ld-elfweak/size2a.s: Extend test to check size for two weaks. diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 8dbb2c30753..5cba7433015 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -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 diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index ca260c846aa..9f9ec91af7e 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -1263,17 +1263,18 @@ 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 -# 2:assembler options -# 3:filenames of assembler files -# 4:name of output file -# 5:expected output -# 6:compiler flags (optional) - -proc run_ld_link_exec_tests { ldtests } { +# 0:name +# 1:ld options +# 2:assembler options +# 3:filenames of assembler files +# 4:name of output file +# 5:expected output +# 6:compiler flags (optional) + +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] -- 2.30.2