binutils testsuite: replace unresolved with unsupported
authorAlan Modra <amodra@gmail.com>
Fri, 12 Feb 2021 06:35:12 +0000 (17:05 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 12 Feb 2021 08:26:05 +0000 (18:56 +1030)
commit17e04eff810ecf1f8392a995876a98361c565ec7
tree534b89c06a3df24e8f61d556b71156992f256b0f
parent8f054a7a5a973ffc590e90b8cec3d622a8da6c5c
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.
binutils/ChangeLog
binutils/testsuite/binutils-all/ar.exp
binutils/testsuite/binutils-all/compress.exp
binutils/testsuite/binutils-all/objcopy.exp
binutils/testsuite/binutils-all/readelf.exp