diff options
| author | Thiago Jung Bauermann <thiago.bauermann@linaro.org> | 2026-04-26 01:15:00 -0300 |
|---|---|---|
| committer | Thiago Jung Bauermann <thiago.bauermann@linaro.org> | 2026-04-28 14:32:50 -0300 |
| commit | 721db7bd56d803bce2257da677c6c48c97a4115f (patch) | |
| tree | 3db77705170318940549f420a5c416f9a66c723c | |
| parent | 57cb42b69f90784bb57b8c5342765d7439dc693b (diff) | |
| download | binutils-721db7bd56d803bce2257da677c6c48c97a4115f.tar.gz binutils-721db7bd56d803bce2257da677c6c48c97a4115f.tar.bz2 binutils-721db7bd56d803bce2257da677c6c48c97a4115f.zip | |
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>
| -rw-r--r-- | gdb/testsuite/gdb.python/py-prettyprint.exp | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
