Browse Source

* gdb.base/completion.exp: Clarify indentation.

binutils-2_12-branch
Jim Blandy 25 years ago
parent
commit
2d842f1359
  1. 4
      gdb/testsuite/ChangeLog
  2. 31
      gdb/testsuite/gdb.base/completion.exp

4
gdb/testsuite/ChangeLog

@ -1,3 +1,7 @@
2001-12-04 Jim Blandy <jimb@redhat.com>
* gdb.base/completion.exp: Clarify indentation.
2001-12-03 Jim Blandy <jimb@redhat.com> 2001-12-03 Jim Blandy <jimb@redhat.com>
* gdb.asm/s390.inc (gdbasm_datavar): Use `.long' to create `int' * gdb.asm/s390.inc (gdbasm_datavar): Use `.long' to create `int'

31
gdb/testsuite/gdb.base/completion.exp

@ -470,19 +470,28 @@ gdb_expect {
send_gdb "p b-a\t" send_gdb "p b-a\t"
sleep 1 sleep 1
gdb_expect { gdb_expect {
-re "^p b-a\\\x07$"\ -re "^p b-a\\\x07$" {
{ send_gdb "\n" send_gdb "\n"
gdb_expect { gdb_expect {
-re "No symbol \"b\" in current context\\..*$gdb_prompt $"\ -re "No symbol \"b\" in current context\\..*$gdb_prompt $" {
{ pass "complete 'p b-a'"} pass "complete 'p b-a'"
-re ".*$gdb_prompt $" { fail "complete 'p b-a'"} }
timeout {fail "(timeout) complete 'p b-a'"} -re ".*$gdb_prompt $" {
} fail "complete 'p b-a'"
}
timeout {
fail "(timeout) complete 'p b-a'"
} }
-re ".*$gdb_prompt $" { fail "complete 'p b-a'" }
timeout { fail "(timeout) complete 'p b-a'" }
} }
}
-re ".*$gdb_prompt $" {
fail "complete 'p b-a'"
}
timeout {
fail "(timeout) complete 'p b-a'"
}
}
send_gdb "p b-a\t" send_gdb "p b-a\t"
sleep 1 sleep 1

Loading…
Cancel
Save