]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
GDB: testsuite: Fix proc return value in gdb.python/py-prettyprint.exp master
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sun, 26 Apr 2026 04:15:00 +0000 (01:15 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Tue, 28 Apr 2026 17:32:50 +0000 (14:32 -0300)
commit721db7bd56d803bce2257da677c6c48c97a4115f
tree3db77705170318940549f420a5c416f9a66c723c
parent57cb42b69f90784bb57b8c5342765d7439dc693b
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 <tom@tromey.com>
gdb/testsuite/gdb.python/py-prettyprint.exp