From 26d44fafef39e3d477cdf07dd43d216ed7fde315 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 1 Dec 2011 22:06:45 +0000 Subject: [PATCH] gdb/testsuite/ Fix racy FAILs. * gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead of send_gdb. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.base/foll-exec.exp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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. $" { -- 2.30.2