diff options
author | Alan Modra <amodra@gmail.com> | 2021-02-12 17:05:12 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-02-12 18:56:05 +1030 |
commit | 17e04eff810ecf1f8392a995876a98361c565ec7 (patch) | |
tree | 534b89c06a3df24e8f61d556b71156992f256b0f /binutils/testsuite/binutils-all/ar.exp | |
parent | binutils test pr25662: don't use single character labels (diff) | |
download | binutils-gdb-17e04eff810ecf1f8392a995876a98361c565ec7.tar.gz binutils-gdb-17e04eff810ecf1f8392a995876a98361c565ec7.tar.bz2 binutils-gdb-17e04eff810ecf1f8392a995876a98361c565ec7.zip |
binutils testsuite: replace unresolved with unsupported
You'd think "unresolved" would be correct for an objcopy test when the
assembler refuses to assemble one of our source files. After all, the
test of objcopy hasn't been run. However, "unresolved" results in
runtest returning with an error status. If instead we report
"unsupported", runtest returns success. Which is a little less
confusing to a user who doesn't see any errors reported unless they
look in log files.
* testsuite/binutils-all/objcopy.exp: Report "unsupported" when
gas or ld fails to build a testcase rather than "unresolved".
Report "fail" when readelf returns an error status rather than
"unresolved".
* testsuite/binutils-all/ar.exp: Likewise.
* testsuite/binutils-all/compress.exp: Likewise.
* testsuite/binutils-all/readelf.exp: Likewise.
Diffstat (limited to 'binutils/testsuite/binutils-all/ar.exp')
-rw-r--r-- | binutils/testsuite/binutils-all/ar.exp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/binutils/testsuite/binutils-all/ar.exp b/binutils/testsuite/binutils-all/ar.exp index 6d640eab900..86f84242b28 100644 --- a/binutils/testsuite/binutils-all/ar.exp +++ b/binutils/testsuite/binutils-all/ar.exp @@ -195,7 +195,7 @@ proc symbol_table { } { set testname "ar symbol table" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } @@ -244,7 +244,7 @@ proc thin_archive { bfdtests } { set testname "ar thin archive" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } @@ -302,7 +302,7 @@ proc thin_archive_with_nested { bfdtests } { set testname "ar thin archive with nested archive" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } @@ -375,7 +375,7 @@ proc argument_parsing { } { set testname "ar argument parsing" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } @@ -412,7 +412,7 @@ proc deterministic_archive { } { set testname "ar deterministic archive" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } @@ -461,7 +461,7 @@ proc unique_symbol { } { set testname "ar unique symbol in archive" if ![binutils_assemble $srcdir/$subdir/unique.s tmpdir/unique.${obj}] { - unresolved $testname + unsupported $testname return } @@ -503,7 +503,7 @@ proc delete_an_element { } { set testname "ar deleting an element" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } @@ -545,7 +545,7 @@ proc move_an_element { } { set testname "ar moving an element" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } @@ -626,7 +626,7 @@ proc extract_an_element { } { set testname "ar extracting an element" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } @@ -686,7 +686,7 @@ proc many_files { } { set ofile "tmpdir/d-$i.${obj}" if ![binutils_assemble $sfile $ofile] { - unresolved $testname + unsupported $testname return } @@ -725,7 +725,7 @@ proc test_add_dependencies { } { set testname "ar adding library dependencies" if ![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.${obj}] { - unresolved $testname + unsupported $testname return } |