From: Tom Tromey Date: Tue, 28 May 2019 16:55:59 +0000 (-0600) Subject: Fix failure in gdb.ada/complete.exp X-Git-Tag: binutils-2_33~1037 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f49055a52f04f75b6560f304eb975128dd82ad68;p=external%2Fbinutils.git Fix failure in gdb.ada/complete.exp I noticed a failure in gdb.ada/complete.exp when testing locally: FAIL: gdb.ada/complete.exp: complete break ada This failed due to this output: [...] break ada/generated/gnatvsn.ads break ada/libgnat/s-excmac.ads break ada/sdefault.adb break ada/snames.adb break ada/snames.ads This patch updates the regexp to allow "/" and "-" to appear. gdb/testsuite/ChangeLog 2019-05-29 Tom Tromey * gdb.ada/complete.exp (test_gdb_no_completion): Add "/" and "-" to "break complete ada" test case's regexp. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ddcb834..661c938 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2019-05-29 Tom Tromey + * gdb.ada/complete.exp (test_gdb_no_completion): Add "/" and "-" + to "break complete ada" test case's regexp. + +2019-05-29 Tom Tromey + PR c++/20020: * gdb.cp/constexpr-field.exp: New file. * gdb.cp/constexpr-field.cc: New file. diff --git a/gdb/testsuite/gdb.ada/complete.exp b/gdb/testsuite/gdb.ada/complete.exp index 8a5ef89..1746c18 100644 --- a/gdb/testsuite/gdb.ada/complete.exp +++ b/gdb/testsuite/gdb.ada/complete.exp @@ -212,13 +212,14 @@ test_gdb_complete "ambiguous_func" \ # However, we want to sanity-check each one of them, knowing that # each result should start with "break ada" and that the proposed # completion should look like a valid symbol name (in particular, -# no uppercase letters...). See gdb/22670. +# no uppercase letters...). See gdb/22670. File names are OK as +# well, which is why "/" and "-" appear in the regexp. gdb_test_no_output "set max-completions unlimited" set test "complete break ada" gdb_test_multiple "$test" $test { - -re "^$test$eol\(break ada(\[a-z0-9._@\])*$eol\)+$gdb_prompt $" { + -re "^$test$eol\(break ada\[-a-z0-9._@/\]*$eol\)+$gdb_prompt $" { pass $test } -re "\[A-Z\].*$gdb_prompt $" {