Commit 918b89b7 by Iain Buclaw

d: Fix new tests gdc.dg/pr93038.d and gdc.dg/pr93038b.d in r10-7320 fail

The scan-file match is likely too strict to always succeed, so instead
have split it up into a set of smaller matches.

gcc/testsuite/ChangeLog:

	PR d/94315
	* gdc.dg/pr93038.d: Split dg-final into multiple tests.
	* gdc.dg/pr93038b.d: Likewise.
parent fb25041e
2020-04-01 Iain Buclaw <ibuclaw@gdcproject.org> 2020-04-01 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/94315
* gdc.dg/pr93038.d: Split scan-file into multiple tests.
* gdc.dg/pr93038b.d: Likewise.
2020-04-01 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/94321 PR d/94321
* gdc.dg/pr92216.d: Update to work on targets with 16 or 32-bit * gdc.dg/pr92216.d: Update to work on targets with 16 or 32-bit
pointers. pointers.
......
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93038 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93038
// { dg-options "-J $srcdir/gdc.dg/fileimports -MMD" } // { dg-options "-J $srcdir/gdc.dg/fileimports -MMD" }
// { dg-do compile } // { dg-do compile }
// { dg-final { scan-file pr93038.deps "pr93038.o: \[^\n\]*/pr93038.d \[ \\\\\n\]*\[^\n\]*/fileimports/pr93038.txt" } } // { dg-final { scan-file pr93038.deps "(^|\\n)pr93038.o:" } }
// { dg-final { scan-file pr93038.deps "pr93038.d" } }
// { dg-final { scan-file pr93038.deps "pr93038.txt" } }
// { dg-final { file delete pr93038.deps } } // { dg-final { file delete pr93038.deps } }
module pr93038; module pr93038;
......
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93038 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93038
// { dg-options "-J $srcdir/gdc.dg/fileimports -MMD -MP" } // { dg-options "-J $srcdir/gdc.dg/fileimports -MMD -MP" }
// { dg-do compile } // { dg-do compile }
// { dg-final { scan-file pr93038b.deps "pr93038b.o: \[^\n\]*/pr93038b.d \[ \\\\\n\]*\[^\n\]*/fileimports/pr93038.txt\n\n\[^\n\]*/fileimports/pr93038.txt:" } } // { dg-final { scan-file pr93038b.deps "(^|\\n)pr93038b.o:" } }
// { dg-final { scan-file pr93038b.deps "pr93038b.d" } }
// { dg-final { scan-file pr93038b.deps "pr93038.txt" } }
// { dg-final { scan-file pr93038b.deps "(^|\\n)\[^\n\]*pr93038.txt:" } }
// { dg-final { file delete pr93038b.deps } } // { dg-final { file delete pr93038b.deps } }
module pr93038b; module pr93038b;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment