From d4ff3cbfdb361a1c3a16425c084cdd2ff8535cfd Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Thu, 25 Feb 2021 16:06:25 +0000 Subject: [PATCH] gdb/testsuite: Add a missing -wrap in gdb_test_multiple 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/ChangeLog b/gdb/testsuite/ChangeLog index bbe4e5cbfeb..46d27a1b52f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-02-25 Andrew Burgess + + * gdb.fortran/associated.exp: Add missing '-wrap' argument. + 2021-02-25 Andrew Burgess PR fortran/26155 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.30.2