Expect for "@" when doing "complete break ada" on gdb.ada/complete.exp
authorSergio Durigan Junior <sergiodj@redhat.com>
Mon, 17 Sep 2018 21:29:50 +0000 (17:29 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Tue, 18 Sep 2018 17:50:51 +0000 (13:50 -0400)
Currently, gdb.ada/complete.exp's "complete break ada" test fails
because the regexp used to match the command's output doesn't expect
"@", but we have an output like:

  ...
  complete break ada
  break ada.assertions.assert
  break ada.calendar.arithmetic.difference
  break ada.calendar.arithmetic_operations.add
  break ada.calendar.arithmetic_operations.add.cold
  break ada.calendar.arithmetic_operations.add@plt
  break ada.calendar.arithmetic_operations.difference
  break ada.calendar.arithmetic_operations.difference@plt
  ...

This patch adds "@" to the regexp, unbreaking the test.

OK?

gdb/testsuite/ChangeLog:
2018-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>

* gdb.ada/complete.exp: Expect for "@" when doing "complete
break ada".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/complete.exp

index ad74bfdbf74a0f94014c4d403f8a366d271bfd6e..1c93b7c1d18d635bebad3091eef0f3d5c1de9b98 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * gdb.ada/complete.exp: Expect for "@" when doing "complete
+       break ada".
+
 2018-09-17  Simon Marchi  <simon.marchi@polymtl.ca>
 
        PR python/23669
index cb9e4ae7ffc652307a603f3488ecd2e9704dc92b..ac2bf850771eebae65a5075e99ffeb1ab4dcce1a 100644 (file)
@@ -218,7 +218,7 @@ 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 $" {