From: Jan Kratochvil Date: Thu, 1 Dec 2011 22:06:45 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Tag: gdb_7_4-2011-12-13-branchpoint~127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26d44fafef39e3d477cdf07dd43d216ed7fde315;p=platform%2Fupstream%2Fbinutils.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 866593e..965571d 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 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. $" {