multiline.exp: complain about mismatched dg-{begin|end}-multiline-output
commite8872641187af7b8f8eab29c8efd52a102957d5d
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Oct 2018 17:05:23 +0000 (11 17:05 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Oct 2018 17:05:23 +0000 (11 17:05 +0000)
treedaa81cdcb11522a45eef873181d9af1e565942d2
parentba9d9b09221aca3ba6895291248c1a19e79f2130
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".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265046 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/lib/multiline.exp