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.
This commit is contained in:
Mike Frysinger 2021-04-03 20:58:14 -04:00
parent 1bcee7fd87
commit 05385fc777
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2021-04-08 Mike Frysinger <vapier@gentoo.org>
* lib/sim-defs.exp (run_sim_test): Set status to unsupported if
$return_code is 77.
2021-04-08 Mike Frysinger <vapier@gentoo.org>
* lib/sim-defs.exp (run_sim_test): Return if sim_tool_path does not

View File

@ -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
}