+2019-05-29 Tom Tromey <tromey@adacore.com>
+
+ * gdb.ada/complete.exp (test_gdb_no_completion): Add "/" and "-"
+ to "break complete ada" test case's regexp.
+
2019-05-29 Tom Tromey <tromey@adacore.com>
PR c++/20020:
# 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 $" {