This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: dg-skip-if in Fortran testsuite
- From: Fritz Reese <fritzoreese at gmail dot com>
- To: paulkoning at comcast dot net
- Cc: fortran <fortran at gcc dot gnu dot org>
- Date: Fri, 13 Jul 2018 17:43:04 -0400
- Subject: Re: dg-skip-if in Fortran testsuite
- References: <4E52BAA6-0DE1-466A-91C3-3A36812C6353@comcast.net>
On Fri, Jul 13, 2018 at 1:38 PM Paul Koning <paulkoning@comcast.net> wrote:
>
> I'm looking at some testsuite failures that are caused by address space exceeded in my small target (pdp11).
>
> For C testsuites, the answer is simple: drop in something like this:
>
> ! { dg-skip-if "Array too big" { "pdp11-*-*" } }
>
> But the Fortran test suite doesn't pay attention to that. It looks like this is because target-supports-dg.exp isn't included from fortran-torture.exp. But simply including it there doesn't work (I get a complaint from Dejagnu that doesn't mean much to me).
>
> Any suggestions on how to do this? There are only a couple of test cases where this is needed, but it would be nice to have a clean test run.
>
> paul
>
I believe you can omit the testcase for certain targets by mangling
the 'target' field of dg-do. Grepping through the gfortran.dg
testsuite yields a few examples which look like:
> { dg-do run { target { ! { pdp11-*-* } } } }
> { dg-do run { xfail pdp11-*-* } }
Presumably you could omit errors/warnings on a case-by-case basis similarly:
> ... { dg-error "Array too big" "" { target { ! { pdp11-*-* } } } }
Fritz