diff options
author | Ben Elliston <bje@au.ibm.com> | 2005-07-27 21:29:12 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2005-07-27 21:29:12 +0000 |
commit | c8c140d941507603c4927fb3f1bcb79b5edf062c (patch) | |
tree | 43875f6acfff1c71cd521b85c8babc0bd4009ac6 /ld/testsuite/lib/ld-lib.exp | |
parent | 414e5532bca32fe2c5820548131be0cf8f65b038 (diff) | |
download | gdb-c8c140d941507603c4927fb3f1bcb79b5edf062c.zip gdb-c8c140d941507603c4927fb3f1bcb79b5edf062c.tar.gz gdb-c8c140d941507603c4927fb3f1bcb79b5edf062c.tar.bz2 |
* 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.
Diffstat (limited to 'ld/testsuite/lib/ld-lib.exp')
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index ca260c8..9f9ec91 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] |