aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2007-10-09 15:08:02 +0000
committerPierre Muller <muller@sourceware.org>2007-10-09 15:08:02 +0000
commit5aa7ddc2dbfa8f7ddad52c9e0ee9bfa744086da2 (patch)
treeed53e8c3b657eefdba2e286815ab62785cec513b /gdb/testsuite
parent6bd1a22c3eecb1892841a530544d8cdf43af5263 (diff)
downloadgdb-5aa7ddc2dbfa8f7ddad52c9e0ee9bfa744086da2.zip
gdb-5aa7ddc2dbfa8f7ddad52c9e0ee9bfa744086da2.tar.gz
gdb-5aa7ddc2dbfa8f7ddad52c9e0ee9bfa744086da2.tar.bz2
2007/10/09 Pierre Muller <muller@ics.u-strasbg.fr>
* lib/gdb.exp (gdb_run_cmd): Move comment outside of gdb_expect call, to avoid interruption.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/lib/gdb.exp6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 61b007a..2906055 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2007/10/09 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * lib/gdb.exp (gdb_run_cmd): Move comment outside
+ of gdb_expect call, to avoid interruption.
+
2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
* gdb.base/whatis.c (v_long_long, v_signed_long_long)
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 48b62f4..b08748a 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -275,13 +275,13 @@ proc gdb_run_cmd {args} {
}
send_gdb "run $args\n"
# This doesn't work quite right yet.
- gdb_expect 60 {
+# Use -notransfer here so that test cases (like chng-sym.exp)
+# may test for additional start-up messages.
+ gdb_expect 60 {
-re "The program .* has been started already.*y or n. $" {
send_gdb "y\n"
exp_continue
}
- # Use -notransfer here so that test cases (like chng-sym.exp)
- # may test for additional start-up messages.
-notransfer -re "Starting program: \[^\r\n\]*" {}
}
}