]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Clean up "return -1" in gdb.rust
authorTom Tromey <tromey@adacore.com>
Thu, 30 Oct 2025 15:20:25 +0000 (09:20 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 3 Nov 2025 13:39:06 +0000 (06:39 -0700)
commit5b7bb3412e6c1f591eddf024a0bae0e6f74881d3
tree5d9665c609cc9ebd01adf1c2512aee3d8e64d96c
parent12ef7d5b7b02d0023db645d86eb9d0797bc747fe
Clean up "return -1" in gdb.rust

This changes gdb.rust tests to use plain "return" rather than
"return -1".  In these spots, the "-1" has no meaning.

Approved-by: Kevin Buettner <kevinb@redhat.com>
20 files changed:
gdb/testsuite/gdb.rust/completion.exp
gdb/testsuite/gdb.rust/dwindex.exp
gdb/testsuite/gdb.rust/finish.exp
gdb/testsuite/gdb.rust/fnfield.exp
gdb/testsuite/gdb.rust/generics.exp
gdb/testsuite/gdb.rust/main-crash.exp
gdb/testsuite/gdb.rust/methods.exp
gdb/testsuite/gdb.rust/modules.exp
gdb/testsuite/gdb.rust/onetwoeight.exp
gdb/testsuite/gdb.rust/pp.exp
gdb/testsuite/gdb.rust/rawids.exp
gdb/testsuite/gdb.rust/rust-start.exp
gdb/testsuite/gdb.rust/rust-style.exp
gdb/testsuite/gdb.rust/simple.exp
gdb/testsuite/gdb.rust/traits.exp
gdb/testsuite/gdb.rust/unicode.exp
gdb/testsuite/gdb.rust/union.exp
gdb/testsuite/gdb.rust/unsized.exp
gdb/testsuite/gdb.rust/unsized2.exp
gdb/testsuite/gdb.rust/watch.exp