aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/bang.exp
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2004-02-02 21:30:02 +0000
committerFred Fish <fnf@specifix.com>2004-02-02 21:30:02 +0000
commit1b8021965a82c658c610b710eb3fe6bc132da948 (patch)
treee60b2528eece2bc4dbc1879b77846ef10d5683f7 /gdb/testsuite/gdb.base/bang.exp
parent18fe20335a444c79dd2de86ca31833189a85e234 (diff)
downloadgdb-1b8021965a82c658c610b710eb3fe6bc132da948.zip
gdb-1b8021965a82c658c610b710eb3fe6bc132da948.tar.gz
gdb-1b8021965a82c658c610b710eb3fe6bc132da948.tar.bz2
Reviewed and approved by drow@mvista.com.
2004-02-02 Fred Fish <fnf@redhat.com> * gdb.base/bang.exp: Use gdb_run_cmd so this tests works with remote targets. Update copyright years.
Diffstat (limited to 'gdb/testsuite/gdb.base/bang.exp')
-rw-r--r--gdb/testsuite/gdb.base/bang.exp14
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/bang.exp b/gdb/testsuite/gdb.base/bang.exp
index f584074..1e18328 100644
--- a/gdb/testsuite/gdb.base/bang.exp
+++ b/gdb/testsuite/gdb.base/bang.exp
@@ -1,4 +1,4 @@
-# Copyright 2003 Free Software Foundation, Inc.
+# Copyright 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -35,7 +35,13 @@ gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
# Verify that we can run the program and that it terminates normally.
-gdb_test "run" \
- ".*Program exited normally\." \
- "run program"
+gdb_run_cmd
+gdb_expect {
+ -re ".*Program exited normally\.\r\n$gdb_prompt $" {
+ pass "run program"
+ }
+ timeout {
+ fail "run program (timeout)"
+ }
+}