aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-02-01 05:49:07 +0000
committerDaniel Jacobowitz <drow@false.org>2004-02-01 05:49:07 +0000
commitce22a4f1dbbfe3318420263ee1f605f286aac464 (patch)
tree1248552334e8ab585d26b68bb72f83794cb6b429
parent7b16db4bd5831a29eee694a7549402ac849aec0f (diff)
downloadgdb-ce22a4f1dbbfe3318420263ee1f605f286aac464.zip
gdb-ce22a4f1dbbfe3318420263ee1f605f286aac464.tar.gz
gdb-ce22a4f1dbbfe3318420263ee1f605f286aac464.tar.bz2
* gdb.base/completion.exp: Kill a stray backslash.
From Jim Ingham <jingham@apple.com>: * gdb.base/completion.exp: Test that "complete file ./gdb.base/compl" agrees with the result from sending a tab.
-rw-r--r--gdb/testsuite/ChangeLog8
-rw-r--r--gdb/testsuite/gdb.base/completion.exp10
2 files changed, 17 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b8fd1fb..f5b8acb 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2004-02-01 Daniel Jacobowitz <drow@mvista.com>
+
+ * gdb.base/completion.exp: Kill a stray backslash.
+
+ From Jim Ingham <jingham@apple.com>:
+ * gdb.base/completion.exp: Test that "complete file ./gdb.base/compl"
+ agrees with the result from sending a tab.
+
2004-01-31 Daniel Jacobowitz <drow@mvista.com>
* gdb.base/chng-syms.exp: Remove stray newline.
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp
index ccf00cf..1698a30 100644
--- a/gdb/testsuite/gdb.base/completion.exp
+++ b/gdb/testsuite/gdb.base/completion.exp
@@ -657,6 +657,15 @@ gdb_test "cd ${fullsrcdir}" \
"Working directory [string_to_regexp ${fullsrcdir}].*" \
"cd to \${srcdir}"
+send_gdb "complete file ./gdb.base/compl\n"
+sleep 1
+gdb_expect {
+ -re "file ./gdb.base/completion\\.exp.*$gdb_prompt $"
+ { pass "complete-command 'file ./gdb.base/compl'"}
+ -re ".*$gdb_prompt $" { fail "complete-command 'file ./gdb.base/compl'" }
+ timeout { fail "(timeout) complete-command 'file ./gdb.base/compl'" }
+}
+
send_gdb "file ./gdb.base/complet\t"
sleep 1
gdb_expect {
@@ -664,7 +673,6 @@ gdb_expect {
{ send_gdb "\n"
gdb_expect {
-re "\r\nA program is being debugged already\\. Kill it\\? \\(y or n\\) $"
-\
{ send_gdb "n\n"
gdb_expect {
-re "\r\nProgram not killed\\.\r\n$gdb_prompt $"\