gdb/testsuite: Add a missing -wrap in gdb_test_multiple
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 25 Feb 2021 16:06:25 +0000 (16:06 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 25 Feb 2021 16:38:03 +0000 (16:38 +0000)
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
gdb/testsuite/gdb.fortran/associated.exp

index bbe4e5cbfebe9bd27d6c7aea353d7be7eb4b288a..46d27a1b52f69aaab7d77ac3a8f0a8ae4abf7c7c 100644 (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
index d9976f7e8bc8667e822b46f998ef169b5fce3e97..021a6b784f92ed18acaa7690bf57df219620aae9 100644 (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
            }