dejagnu help again..

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Mon Feb 26 23:48:00 GMT 2007


Christopher D. Rickett wrote:
>> the compilation should fail though, before trying to link, so dg-do 
>> link doesn't seem correct.
>>
>> i tried the dg-do compile only in the main and removing the dg line 
>> from the second file, but that didn't fix it.
> 
> there seems to be an easy way to fix this; if i add { dg-do compile } in 
> the first file, then try to do a normal compile in the second (*main*) 
> w/o any reference to the first source file, it will fail as expected
> because of the errors.  this depends on the non-main file being compiled
> first.  can that be assumed?

The testsuite sorts the list of testcases before going through them, 
i.e. the following code in dg.exp:
gfortran-dg-runtest [lsort \
        [glob -nocomplain $srcdir/$subdir/*.\[fF\]{,90,95,03} ] ] 
$DEFAULT_FFLAGS

So, I presume it should work, even though it's not particularly pretty, 
maybe you should add a few comments on the ordering requirement.

- Tobi



More information about the Fortran mailing list