]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: testsuite: support exit 77 for unsupported tests
authorMike Frysinger <vapier@gentoo.org>
Sun, 4 Apr 2021 00:58:14 +0000 (20:58 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 8 Apr 2021 04:48:54 +0000 (00:48 -0400)
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.

sim/testsuite/ChangeLog
sim/testsuite/lib/sim-defs.exp

index 113b6d5622c90517b784c2366b7ed0ce74afde83..8b03c1d0a726a6dbd927ad1e85ec4757329c99b0 100644 (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
index e627b6efc595f92747f4bc7e66b29df3667c9584..59c7dede83e45faa4de55ff9c2b5df97dab1d75f 100644 (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
        }