https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69181
--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Author: dmalcolm Date: Mon Jan 18 17:26:58 2016 New Revision: 232535 URL: https://gcc.gnu.org/viewcvs?rev=232535&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.dg/pr69181-1.c trunk/gcc/testsuite/gcc.dg/pr69181-2.c Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/lib/gcc-dg.exp trunk/gcc/testsuite/lib/multiline.exp