From: Thiago Jung Bauermann Date: Wed, 29 Apr 2026 23:04:28 +0000 (-0300) Subject: GDB: testsuite: XML: Don't return -1 nor 0 from top-level X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf2e321d3659df891bd385dde74a58c2bc5daa74;p=thirdparty%2Fbinutils-gdb.git GDB: testsuite: XML: Don't return -1 nor 0 from top-level This patch changes statements that return -1 or 0 from the top level. Approved-By: Tom Tromey --- diff --git a/gdb/testsuite/gdb.xml/tdesc-arch.exp b/gdb/testsuite/gdb.xml/tdesc-arch.exp index f3bb9ba2652..1f9b3c20057 100644 --- a/gdb/testsuite/gdb.xml/tdesc-arch.exp +++ b/gdb/testsuite/gdb.xml/tdesc-arch.exp @@ -31,7 +31,7 @@ gdb_test_multiple "set architecture" $msg { -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 } } @@ -47,7 +47,7 @@ gdb_test_multiple "show architecture" $msg { # 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 diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp b/gdb/testsuite/gdb.xml/tdesc-regs.exp index 96f0fe089aa..092355020b2 100644 --- a/gdb/testsuite/gdb.xml/tdesc-regs.exp +++ b/gdb/testsuite/gdb.xml/tdesc-regs.exp @@ -109,7 +109,7 @@ if {[string equal ${core-regs} ""]} { unsupported "register tests (missing architecture-specific core-regs setting)" } - return 0 + return } # Otherwise, we support both XML and target defined registers. diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp index cdd075de099..41dc30a7a5a 100644 --- a/gdb/testsuite/gdb.xml/tdesc-reload.exp +++ b/gdb/testsuite/gdb.xml/tdesc-reload.exp @@ -21,11 +21,11 @@ require allow_xml_test 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. @@ -60,7 +60,7 @@ gdb_load ${binfile} # 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