On Thu, Oct 27, 2016 at 09:12:42AM -0400, Fritz Reese wrote:
> On Thu, Oct 27, 2016 at 8:52 AM, Jakub Jelinek <ja...@redhat.com> wrote:
> > On Thu, Oct 27, 2016 at 08:49:42AM -0400, Fritz Reese wrote:
> >>
> >> Do you know if there is there any way from DG to verify that a runtime
> >> warning is emitted?
> >
> > Use dg-output for that.  And, if the test is supposed to exit with non-zero
> > exit status because of the runtime error, then also dg-shouldfail.
> >
> >         Jakub
> 
> Thanks. I could never find good documentation on the various dg-*
> testing options. I was browsing other test files to figure out how to
> express dec_io_5 and dec_io_6. I first saw "XFAIL", I assumed it meant
> "eXpected FAIL", and used it since I "expected" dec_io_5 to "fail" at
> runtime. I was only half-right...
> 
> The attached should be correct now
> 
> ---
> Fritz Reese.
> 
> From: Fritz Reese <fritzore...@gmail.com>
> Date: Thu, 27 Oct 2016 08:46:33 -0400
> Subject: [PATCH] Fix some DEC I/O testcases.
> 
>         gcc/testsuite/gfortran.dg/
>         * dec_io_5.f90, dec_io_6.f90: Don't use "test.txt", and use
>         dg-shouldfail/dg-output instead of XFAIL.

LGTM.

        Jakub

Reply via email to