multiline.exp: complain about mismatched dg-{begin|end}-multiline-output
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 11 Oct 2018 17:05:23 +0000 (17:05 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 11 Oct 2018 17:05:23 +0000 (17:05 +0000)
commitcbd8652b67eee2f10ce276968983b494829fa42d
treedaa81cdcb11522a45eef873181d9af1e565942d2
parentcfef4c324ac300c0ad120f0fcee376159de84a0c
multiline.exp: complain about mismatched dg-{begin|end}-multiline-output

Mismatched dg-{begin|end}-multiline-output directives are currently
silently ignored, leading to difficult-to-diagnose test failures
involving excess output.

This patch makes multiline.exp complain about them.

gcc/testsuite/ChangeLog:
* lib/multiline.exp (dg-begin-multiline-output): Issue an error if
there hasn't been a dg-end-multiline-output since the last
dg-begin-multiline-output.
(dg-end-multiline-output): Issue an error if there hasn't been a
dg-begin-multiline-output.  Reset _multiline_last_beginning_line
as soon possible.  Rename "line" to "last_line".

From-SVN: r265046
gcc/testsuite/ChangeLog
gcc/testsuite/lib/multiline.exp