testsuite: move handle-multiline-outputs to before check for blank lines
commit985d6480fe52a5b109960117ba6a876dd875157e
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 22 Jun 2023 01:48:59 +0000 (21 21:48 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 22 Jun 2023 01:48:59 +0000 (21 21:48 -0400)
treedb4f7c421c18ebfc4ec489ce9e3b5343112c3dc3
parentcb760f66e0b29f09af5cfa0cd6aebc02aaaa0f7f
testsuite: move handle-multiline-outputs to before check for blank lines

I have followup patches that require checking for multiline patterns
that have blank lines within them, so this moves the handling of
multiline patterns before the check for blank lines, allowing for such
multiline patterns.

Doing so uncovers some issues with existing multiline directives, which
the patch fixes.

gcc/testsuite/ChangeLog:
* c-c++-common/Wlogical-not-parentheses-2.c: Split up the
multiline directive.
* gcc.dg/analyzer/malloc-macro-inline-events.c: Remove redundant
dg-regexp directives.
* gcc.dg/missing-header-fixit-5.c: Split up the multiline
directives.
* lib/gcc-dg.exp (gcc-dg-prune): Move call to
handle-multiline-outputs from prune_gcc_output to here.
* lib/multiline.exp (dg-end-multiline-output): Move call to
maybe-handle-nn-line-numbers from prune_gcc_output to here.
* lib/prune.exp (prune_gcc_output): Move calls to
maybe-handle-nn-line-numbers and handle-multiline-outputs from
here to the above.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/c-c++-common/Wlogical-not-parentheses-2.c
gcc/testsuite/gcc.dg/analyzer/malloc-macro-inline-events.c
gcc/testsuite/gcc.dg/missing-header-fixit-5.c
gcc/testsuite/lib/gcc-dg.exp
gcc/testsuite/lib/multiline.exp
gcc/testsuite/lib/prune.exp