OSDN Git Service

gdb/testsuite/
authorjkratoch <jkratoch>
Thu, 1 Dec 2011 22:06:45 +0000 (22:06 +0000)
committerjkratoch <jkratoch>
Thu, 1 Dec 2011 22:06:45 +0000 (22:06 +0000)
Fix racy FAILs.
* gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead
of send_gdb.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/foll-exec.exp

index 866593e..965571d 100644 (file)
@@ -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
index 64c1bfd..c6e4d3d 100644 (file)
@@ -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. $" {