From 2d842f13592bfef71b23c428f6b951e62bdea014 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 4 Dec 2001 16:18:15 +0000 Subject: [PATCH] * gdb.base/completion.exp: Clarify indentation. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/completion.exp | 31 +++++++++++++++++---------- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 824e52b6fe6..a57d02f83ac 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-12-04 Jim Blandy + + * gdb.base/completion.exp: Clarify indentation. + 2001-12-03 Jim Blandy * gdb.asm/s390.inc (gdbasm_datavar): Use `.long' to create `int' diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp index ccd53c34808..d93f5754851 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 -- 2.30.2