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-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.
"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 {
{ 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 $"\