diff options
author | Stephan Rohr <stephan.rohr@intel.com> | 2024-02-22 03:14:29 -0800 |
---|---|---|
committer | Stephan Rohr <stephan.rohr@intel.com> | 2024-12-04 08:25:32 -0800 |
commit | c7e0511ae4fba9906b8650a503bee8d3da940dcb (patch) | |
tree | 8455a0256844e2351898ef18a4ac99e5a9e35352 | |
parent | 624fafc58befdaca88f744877d7c2d99b411e190 (diff) | |
download | binutils-c7e0511ae4fba9906b8650a503bee8d3da940dcb.zip binutils-c7e0511ae4fba9906b8650a503bee8d3da940dcb.tar.gz binutils-c7e0511ae4fba9906b8650a503bee8d3da940dcb.tar.bz2 |
gdb, testsuite: fix TCL error in 'gdb.base/structs.exp'
A failure of 'runto_main' in 'start_structs_test' results in a TCL
error. The return value of 'start_structs_test' function is evaluated
inside an if conditional clause, which expects a boolean value. Return
'-1' on failure to avoid the error.
Reviewed-By: Keith Seitz <keiths@redhat.com>
Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r-- | gdb/testsuite/gdb.base/structs.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/structs.exp b/gdb/testsuite/gdb.base/structs.exp index ab68da2..99b6aa9 100644 --- a/gdb/testsuite/gdb.base/structs.exp +++ b/gdb/testsuite/gdb.base/structs.exp @@ -68,7 +68,7 @@ proc start_structs_test { types } { # Advance to main if {![runto_main]} { - return + return -1 } # Get the debug format |