From: Tom Tromey Date: Mon, 28 Jul 2025 13:17:09 +0000 (-0600) Subject: Avoid timeouts with gnat-llvm in gdb.ada/operator_call.exp X-Git-Tag: gdb-17-branchpoint~429 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c50b5191904d5e9b66683f5c47bc7306cb5fbbe;p=thirdparty%2Fbinutils-gdb.git Avoid timeouts with gnat-llvm in gdb.ada/operator_call.exp While working on gnat-llvm, gdb.ada/operator_call.exp has many timeouts. This happens because gnat-llvm's DWARF output is still incomplete, and so gdb emits an unexpected error in this test. This patch improves the test by having it recognize this output and issue a failure rather than a timeout. This greatly speeds up testing. --- diff --git a/gdb/testsuite/gdb.ada/operator_call.exp b/gdb/testsuite/gdb.ada/operator_call.exp index e96107b24a5..dc7f679d9c3 100644 --- a/gdb/testsuite/gdb.ada/operator_call.exp +++ b/gdb/testsuite/gdb.ada/operator_call.exp @@ -71,6 +71,12 @@ proc test_with_menu {command result} { fail $command } } + "Argument to arithmetic operation not a number or boolean." { + fail $command + } + -re "No definition of \".*\" in current context." { + fail $command + } timeout { fail "$command (timeout)" }