summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/nodebug.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-25 19:34:05 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-25 19:34:05 +0000
commit65731a6b77c790f8d97b65eb967efaf2db0f27b5 (patch)
tree2ecd64f88e19e23f23c1bfd1dd7cbd24cf625233 /gdb/testsuite/gdb.base/nodebug.exp
parent0d45f56e4700225d5789b60da9ea3f082bb5e23d (diff)
downloadbinutils-gdb-65731a6b77c790f8d97b65eb967efaf2db0f27b5.tar.gz
2010-05-25 Michael Snyder <msnyder@vmware.com>
* gdb.base/maint.exp: Replace send_gdb with gdb_test. * gdb.base/miscexprs.exp: Replace send_gdb with gdb_test. * gdb.base/nodebug.exp: Replace send_gdb with gdb_test. * gdb.base/pointers.exp: Replace send_gdb with gdb_test. * gdb.base/ptype.exp: Replace send_gdb with gdb_test.
Diffstat (limited to 'gdb/testsuite/gdb.base/nodebug.exp')
-rw-r--r--gdb/testsuite/gdb.base/nodebug.exp17
1 files changed, 11 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/nodebug.exp b/gdb/testsuite/gdb.base/nodebug.exp
index bc7cf52097e..a97da95315e 100644
--- a/gdb/testsuite/gdb.base/nodebug.exp
+++ b/gdb/testsuite/gdb.base/nodebug.exp
@@ -190,12 +190,17 @@ if [runto inner] then {
# the inferior was compiled with -g. Thus, we expect this
# testpoint to fail on HP-UX.
if { [istarget "hppa*-hpux*"] } {
- send_gdb "p/c array_index(\"abcdef\",2)\n"
- gdb_expect {
- -re ".*Suggest linking executable with -g.*$gdb_prompt $" { pass "p/c array_index(\"abcdef\",2)" }
- -re ".*Cannot find __wdb_call_dummy in.*end.o.*" { pass "p/c array_index(\"abcdef\",2)" }
- -re ".*99 'c'.*" { pass "p/c array_index(\"abcdef\",2)" }
- timeout { fail "(timeout) p/c array_index" }
+ gdb_test_multiple "p/c array_index(\"abcdef\",2)" \
+ "p/c array_index(\"abcdef\",2)" {
+ -re ".*Suggest linking executable with -g.*$gdb_prompt $" {
+ pass "p/c array_index(\"abcdef\",2)"
+ }
+ -re ".*Cannot find __wdb_call_dummy in.*end.o.*" {
+ pass "p/c array_index(\"abcdef\",2)"
+ }
+ -re ".*99 'c'.*" {
+ pass "p/c array_index(\"abcdef\",2)"
+ }
}
} else {
# We need to up this because this can be really slow on some boards.