PR testsuite/69181: ensure expected multiline outputs is cleared per-test
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 18 Jan 2016 17:26:58 +0000 (17:26 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 18 Jan 2016 17:26:58 +0000 (17:26 +0000)
commit9617fd0862322bc263bc8a73300cdee967d3def8
treecae7f9da7462a1acea98fb89db350adff79b3b55
parentc91bcffc4a62adc87942c09c2da2f3aa7135fba4
PR testsuite/69181: ensure expected multiline outputs is cleared per-test

gcc/testsuite/ChangeLog:
PR testsuite/69181
* gcc.dg/pr69181-1.c: New test file.
* gcc.dg/pr69181-2.c: New test file.
* lib/gcc-dg.exp (dg-test): Consolidate post-test cleanup of
globals by moving it to...
(cleanup-after-saved-dg-test): ...this new function.  Add
"global additional_sources_used".  Add reset of global
multiline_expected_outputs to the empty list.
* lib/multiline.exp (_multiline_expected_outputs): Rename this
global to...
(multiline_expected_outputs): ...this, and updated comments to
note that it is modified from gcc-dg.exp.
(dg-end-multiline-output): Update for the above renaming.
(handle-multiline-outputs): Likewise.  Remove the clearing
of the expected outputs to the empty list.

From-SVN: r232535
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr69181-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr69181-2.c [new file with mode: 0644]
gcc/testsuite/lib/gcc-dg.exp
gcc/testsuite/lib/multiline.exp