From: Jan Kratochvil Date: Thu, 1 Dec 2011 22:06:45 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26d44fafef39e3d477cdf07dd43d216ed7fde315;p=binutils-gdb.git gdb/testsuite/ Fix racy FAILs. * gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead of send_gdb. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 866593ec444..965571dae6d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-12-01 Jan Kratochvil + + Fix racy FAILs. + * gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead + of send_gdb. + 2011-11-30 Ulrich Weigand * 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 64c1bfdb0a4..c6e4d3d10ea 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. $" {