aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/completion.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-04-26 18:37:14 +0000
committerTom Tromey <tromey@redhat.com>2010-04-26 18:37:14 +0000
commit3f172e2492c90613517c90f46a1161d44e2745ca (patch)
tree32ab2d6df9bb2a911b796965486a780a6e8f8d83 /gdb/testsuite/gdb.base/completion.exp
parent9757332fd2256ecc8b023181fcd0807e2a159ad6 (diff)
downloadgdb-3f172e2492c90613517c90f46a1161d44e2745ca.zip
gdb-3f172e2492c90613517c90f46a1161d44e2745ca.tar.gz
gdb-3f172e2492c90613517c90f46a1161d44e2745ca.tar.bz2
gdb
* cli/cli-decode.c (complete_on_cmdlist): Make two passes over the command list. gdb/testsuite * gdb.base/completion.exp: Add tests for completion and deprecated commands.
Diffstat (limited to 'gdb/testsuite/gdb.base/completion.exp')
-rw-r--r--gdb/testsuite/gdb.base/completion.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp
index fbd8599..5f836b6 100644
--- a/gdb/testsuite/gdb.base/completion.exp
+++ b/gdb/testsuite/gdb.base/completion.exp
@@ -847,6 +847,12 @@ gdb_expect {
eof { fail "(eof) Completing non-existing component #2" }
}
+# If there is a non-deprecated completion, it should be returned.
+gdb_test "complete sav" "save" "test non-deprecated completion"
+# If there is only a deprecated completion, then it should be returned.
+gdb_test "complete save-t" "save-tracepoints" "test deprecated completion"
+
+
# Restore globals modified in this test...
set timeout $oldtimeout1