aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-12-01 22:06:45 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-12-01 22:06:45 +0000
commit26d44fafef39e3d477cdf07dd43d216ed7fde315 (patch)
tree32b97ef148d0411171de3c74ef1adcf920a0ebdd /gdb/testsuite
parentae6f0d5b5a3ed963c92fdcd44e54ee76026f75d5 (diff)
downloadgdb-26d44fafef39e3d477cdf07dd43d216ed7fde315.zip
gdb-26d44fafef39e3d477cdf07dd43d216ed7fde315.tar.gz
gdb-26d44fafef39e3d477cdf07dd43d216ed7fde315.tar.bz2
gdb/testsuite/
Fix racy FAILs. * gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead of send_gdb.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.base/foll-exec.exp2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 866593e..965571d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2011-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix racy FAILs.
+ * gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead
+ of send_gdb.
+
2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
* gdb.base/testenv.exp: Skip on remote targets. Unset global
diff --git a/gdb/testsuite/gdb.base/foll-exec.exp b/gdb/testsuite/gdb.base/foll-exec.exp
index 64c1bfd..c6e4d3d 100644
--- a/gdb/testsuite/gdb.base/foll-exec.exp
+++ b/gdb/testsuite/gdb.base/foll-exec.exp
@@ -51,7 +51,7 @@ proc zap_session {} {
send_gdb "kill\n"
gdb_expect {
-re ".*Kill the program being debugged.*y or n. $" {
- send_gdb "y\n"
+ gdb_test_no_output "y" ""
send_gdb "file $binfile\n"
gdb_expect {
-re ".*Load new symbol table from.*y or n. $" {