diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/completion.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/completion.exp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp index 09f04df..79f588b 100644 --- a/gdb/testsuite/gdb.base/completion.exp +++ b/gdb/testsuite/gdb.base/completion.exp @@ -637,6 +637,22 @@ gdb_expect { timeout { fail "(timeout) complete (2) 'p no_var_named_this-'" } } +send_gdb "p values\[0\].a\t" +sleep 3 +gdb_expect { + -re "^p values.0..a_field $"\ + { send_gdb "\n" + sleep 1 + gdb_expect { + -re "^.* = 0.*$gdb_prompt $"\ + { pass "complete 'p values\[0\].a'"} + -re ".*$gdb_prompt $" { fail "complete 'p values\[0\].a'"} + timeout {fail "(timeout) complete 'p values\[0\].a'"} + } + } + -re ".*$gdb_prompt $" { fail "complete 'p values\[0\].a'" } + timeout { fail "(timeout) complete 'p values\[0\].a' 2" } + } # The following tests used to simply try to complete `${objdir}/file', # and so on. The problem is that ${objdir} can be very long; the |