This patch changes statements that return -1 or 0 from the top level.
Approved-By: Tom Tromey <tom@tromey.com>
-re "Requires an argument. Valid arguments are (\[^ \]*), auto\\.\r\n$gdb_prompt $" {
# If there is just one supported architecture, we can't do this test.
unsupported "tdesc-arch.exp"
- return -1
+ return
}
}
# If that did not work, no point running further tests.
if { "$arch1" == "" || "$arch2" == "" || "$default_arch" == "" } {
unresolved "architecture XML tests"
- return -1
+ return
}
# Run these tests twice, once for $arch1 and once for $arch2, to
unsupported "register tests (missing architecture-specific core-regs setting)"
}
- return 0
+ return
}
# Otherwise, we support both XML and target defined registers.
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
# Three files we're going to write out to.
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return -1
+ return
}
# Run info registers just to check this appears to run fine with the