public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PUSHED] gdb/testsuite: Add a missing -wrap in gdb_test_multiple
@ 2021-02-25 16:13 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2021-02-25 16:13 UTC (permalink / raw)
  To: gdb-patches

In commit:

  commit faeb9f13c179a4c78bc295a0d0bbd788239704d9
  Date:   Wed Feb 24 12:50:00 2021 +0000

      gdb/fortran: add support for ASSOCIATED builtin

A test was added that fails to process the trailing gdb prompt inside
a gdb_test_multiple call, this will cause a failure if the tests are
run with READ1=1, or randomly at other times depending on how the
expect buffers are read in.

Fixed by adding a -wrap argument.

gdb/testsuite/ChangeLog:

	* gdb.fortran/associated.exp: Add missing '-wrap' argument.
---
 gdb/testsuite/ChangeLog                  | 4 ++++
 gdb/testsuite/gdb.fortran/associated.exp | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.fortran/associated.exp b/gdb/testsuite/gdb.fortran/associated.exp
index d9976f7e8bc..021a6b784f9 100644
--- a/gdb/testsuite/gdb.fortran/associated.exp
+++ b/gdb/testsuite/gdb.fortran/associated.exp
@@ -45,7 +45,7 @@ while { $test_count < 500 } {
 	    -re -wrap "! Test Breakpoint" {
 		# We can run a test from here.
 	    }
-	    -re "! Final Breakpoint" {
+	    -re -wrap "! Final Breakpoint" {
 		# We're done with the tests.
 		set found_final_breakpoint true
 	    }
-- 
2.25.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-25 16:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-25 16:13 [PUSHED] gdb/testsuite: Add a missing -wrap in gdb_test_multiple Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).