From: Mike Frysinger Date: Sun, 4 Apr 2021 00:58:14 +0000 (-0400) Subject: sim: testsuite: support exit 77 for unsupported tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05385fc777d642f4cf3455fc7e0b26faafa4e0f6;p=binutils-gdb.git 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. --- diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog index 113b6d5622c..8b03c1d0a72 100644 --- a/sim/testsuite/ChangeLog +++ b/sim/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-04-08 Mike Frysinger + + * lib/sim-defs.exp (run_sim_test): Set status to unsupported if + $return_code is 77. + 2021-04-08 Mike Frysinger * lib/sim-defs.exp (run_sim_test): Return if sim_tool_path does not diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index e627b6efc59..59c7dede83e 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 }