From: Thiago Jung Bauermann Date: Sun, 26 Apr 2026 04:15:00 +0000 (-0300) Subject: GDB: testsuite: Fix proc return value in gdb.python/py-prettyprint.exp X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fbinutils-gdb.git GDB: testsuite: Fix proc return value in gdb.python/py-prettyprint.exp The callers of the procedure run_lang_tests expect it to return -1 in case of error but in the case where runto_main fails, it will return without any value. Make it return -1 in that case as well. Found by code inspection. Approved-By: Tom Tromey --- diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index ca189a40329..ab31928fa77 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp @@ -40,7 +40,7 @@ proc run_lang_tests {exefile lang} { gdb_load $exefile if {![runto_main]} { - return + return -1 } gdb_test_no_output "set print pretty on"