diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-03 20:58:14 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-08 00:48:54 -0400 |
commit | 05385fc777d642f4cf3455fc7e0b26faafa4e0f6 (patch) | |
tree | e11b997b9a599888d53fe6594ba49b1f2f314bb2 /sim/testsuite/lib | |
parent | 1bcee7fd87d5335f7408467189cab92a7c837608 (diff) | |
download | binutils-05385fc777d642f4cf3455fc7e0b26faafa4e0f6.zip binutils-05385fc777d642f4cf3455fc7e0b26faafa4e0f6.tar.gz binutils-05385fc777d642f4cf3455fc7e0b26faafa4e0f6.tar.bz2 |
sim: testsuite: support exit 77 for unsupported tests
Exit status 77 is common (including the autotools world) to indicate
"skip this test". Add support for mapping that to "unsupported" as
that's the closest in the dejagnu world.
Diffstat (limited to 'sim/testsuite/lib')
-rw-r--r-- | sim/testsuite/lib/sim-defs.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index e627b6e..59c7ded 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -402,7 +402,9 @@ proc run_sim_test { name requested_machs } { set output [lindex $result 1] set status fail - if { $return_code == $opts(status) } { + if { $return_code == 77 } { + set status unsupported + } elseif { $return_code == $opts(status) } { set status pass } |