btrace, test: fix multi-line btrace tests
authorMarkus Metzger <markus.t.metzger@intel.com>
Wed, 18 Dec 2013 13:47:17 +0000 (14:47 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Thu, 16 Jan 2014 11:45:09 +0000 (12:45 +0100)
commit724c7dd8a4520d4020883b4ae3a3f2fa489acb1a
tree85624f783ecf58e38e565411a26cbd6106ad6cc0
parent6d78d93b8d3854dcab6c90307b19f43e1a93f592
btrace, test: fix multi-line btrace tests

For testing multi-line test output, gdb.btrace tests used the following
pattern:

  gdb_test "..." "
  ...\r
  ..."

Change this to:

  gdb_test "..." [join [list \
    "..." \
    "..."] "\r\n"]

Also extract repeated tests into a test function and shorten or remove
test messages.

2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>

testsuite/
* gdb.btrace/function_call_history.exp: Update
* gdb.btrace/instruction_history.exp: Update.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.btrace/function_call_history.exp
gdb/testsuite/gdb.btrace/instruction_history.exp