On Thu, Oct 27, 2016 at 08:49:42AM -0400, Fritz Reese wrote:
> The presence of "test.txt" in dec_io_6.f90 was an artifact of me using
> the same "test.txt" file for all dec_io_1 through dec_io_5 in my own
> private tests. Thus since "test.txt" already existed from my own tests
> I didn't catch when I forgot to switch to "dec_io_6.txt" before
> submitting. I had the XFAIL in because I thought the DG failure was
> coming from the runtime warning. I guess the fail was actually
> happening because "test.txt" didn't exist - now that I correctly
> renamed it to "dec_io_6.txt" you are right and the XFAIL is erroneous.
> I should actually use INQUIRE to check whether the file was deleted on
> close (it should not be for READONLY).
> 
> 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

Reply via email to