aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/completion.exp
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-12-04 16:18:15 +0000
committerJim Blandy <jimb@codesourcery.com>2001-12-04 16:18:15 +0000
commit2d842f13592bfef71b23c428f6b951e62bdea014 (patch)
treec9fa151ded8055d1fa765411092ee9c3875d4081 /gdb/testsuite/gdb.base/completion.exp
parent956cd1d64de3f4438ea16af0c3fdccf98cbf4d26 (diff)
downloadgdb-2d842f13592bfef71b23c428f6b951e62bdea014.zip
gdb-2d842f13592bfef71b23c428f6b951e62bdea014.tar.gz
gdb-2d842f13592bfef71b23c428f6b951e62bdea014.tar.bz2
* gdb.base/completion.exp: Clarify indentation.
Diffstat (limited to 'gdb/testsuite/gdb.base/completion.exp')
-rw-r--r--gdb/testsuite/gdb.base/completion.exp31
1 files changed, 20 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp
index ccd53c3..d93f575 100644
--- a/gdb/testsuite/gdb.base/completion.exp
+++ b/gdb/testsuite/gdb.base/completion.exp
@@ -470,19 +470,28 @@ gdb_expect {
send_gdb "p b-a\t"
sleep 1
-gdb_expect {
- -re "^p b-a\\\x07$"\
- { send_gdb "\n"
- gdb_expect {
- -re "No symbol \"b\" in current context\\..*$gdb_prompt $"\
- { pass "complete 'p b-a'"}
- -re ".*$gdb_prompt $" { fail "complete 'p b-a'"}
- timeout {fail "(timeout) complete 'p b-a'"}
- }
+gdb_expect {
+ -re "^p b-a\\\x07$" {
+ send_gdb "\n"
+ gdb_expect {
+ -re "No symbol \"b\" in current context\\..*$gdb_prompt $" {
+ 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'"
+ }
+}
send_gdb "p b-a\t"
sleep 1