]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Avoid timeouts with gnat-llvm in gdb.ada/operator_call.exp
authorTom Tromey <tromey@adacore.com>
Mon, 28 Jul 2025 13:17:09 +0000 (07:17 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 28 Jul 2025 13:17:09 +0000 (07:17 -0600)
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.

gdb/testsuite/gdb.ada/operator_call.exp

index e96107b24a5b6dd8f870c0700653e671efbd593a..dc7f679d9c3e5d38d0d3b457e5850fd0cc6e79f9 100644 (file)
@@ -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)"
        }