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 | |
parent | 1bcee7fd87d5335f7408467189cab92a7c837608 (diff) | |
download | gdb-05385fc777d642f4cf3455fc7e0b26faafa4e0f6.zip gdb-05385fc777d642f4cf3455fc7e0b26faafa4e0f6.tar.gz gdb-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')
-rw-r--r-- | sim/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | sim/testsuite/lib/sim-defs.exp | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog index 113b6d5..8b03c1d 100644 --- a/sim/testsuite/ChangeLog +++ b/sim/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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 exist. 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 } |