aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/completion.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/completion.exp')
-rw-r--r--gdb/testsuite/gdb.base/completion.exp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp
index 8b1facb..80f7032 100644
--- a/gdb/testsuite/gdb.base/completion.exp
+++ b/gdb/testsuite/gdb.base/completion.exp
@@ -389,6 +389,19 @@ gdb_test_multiple "" "$test" {
}
}
+set test "complete help aliases"
+send_gdb "help user-define\t"
+gdb_test_multiple "" "$test" {
+ -re "^help user-defined $" {
+ send_gdb "\n"
+ gdb_test_multiple "" "$test" {
+ -re "$gdb_prompt $" {
+ pass "$test"
+ }
+ }
+ }
+}
+
# These tests used to try completing the shorter "p b-a".
# Unfortunately, on some systems, there are .o files in system