[Fortran, committed] Fix bugs in the dg-* directives in the test suite (was: testsuite oddities)

Tobias Burnus burnus@net-b.de
Tue Jun 4 07:37:00 GMT 2013


Manfred Schwarb wrote:
> I did some tests for unbalanced curly braces in the gfortran testsuite
> and got quite some output, see attached patch.
>
> additionally,
> - corrected "dg-do  run" issues (double space)

I think some of the test cases might to it on purpose: "dg-do  run" 
causes the test case to run only once while "dg-do run" runs multiple 
times with different options. If the testcase is supposed to test the 
run-time library, calling it multiple times is pointless. Admittedly, 
using two spaces is an ugly hack, but creating a "dg-do run-single" is 
difficult. Those test cases are rather quick, hence, running multiple 
times, keeping the double space version or doing the latter but adding a 
comment all work.

> - dg-flags should be dg-options
> - string adjustments needed after fixing curly braces

Thanks for the patches! Committed as http://gcc.gnu.org/r199636

Tobias



More information about the Fortran mailing list