gdb/testsuite: Add a missing -wrap in gdb_test_multiple

In commit:

  commit faeb9f13c1
  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.
This commit is contained in:
Andrew Burgess 2021-02-25 16:06:25 +00:00
parent 2450ad54ce
commit d4ff3cbfdb
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.fortran/associated.exp: Add missing '-wrap' argument.
2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
PR fortran/26155

View File

@ -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
}