gdb/testsuite: additional test fixes after gdb_test changes
authorAndrew Burgess <aburgess@redhat.com>
Fri, 28 Apr 2023 13:39:03 +0000 (14:39 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 28 Apr 2023 15:48:21 +0000 (16:48 +0100)
commit1f7f972f59470104734ec705c985ab319eb580db
tree07bb2abd05dbd499a8fccdbe2edfece6f07b7d23
parent64b59b6bb2261fe2fa8310f94b4ed420c162e357
gdb/testsuite: additional test fixes after gdb_test changes

After this commit:

  commit e2f620135d92f7cd670af4e524fffec7ac307666
  Date:   Thu Mar 30 13:26:25 2023 +0100

      gdb/testsuite: change newline patterns used in gdb_test

There were some regressions in gdb.trace/*.exp tests when run with the
native-gdbserver board.  This commit fixes these regressions.

All the problems are caused by unnecessary trailing newline characters
included in the patterns passed to gdb_test.  After the above commit
the testsuite is stricter when matching trailing newlines, and so the
additional trailing newline characters are now causing the test to
fail.  Fix by removing all the excess trailing newline characters.

In some cases this cleanup means we should use gdb_test_no_output,
I've done that where appropriate.  In a couple of other places I've
made use of multi_line to better build the expected output pattern.
gdb/testsuite/gdb.trace/actions.exp
gdb/testsuite/gdb.trace/change-loc.exp
gdb/testsuite/gdb.trace/collection.exp
gdb/testsuite/gdb.trace/infotrace.exp
gdb/testsuite/gdb.trace/pending.exp
gdb/testsuite/gdb.trace/stap-trace.exp
gdb/testsuite/gdb.trace/unavailable.exp
gdb/testsuite/gdb.trace/while-stepping.exp