dejagnu help again..

Christopher D. Rickett crickett@lanl.gov
Mon Feb 26 23:49:00 GMT 2007



On Tue, 27 Feb 2007, Tobias Schlüter wrote:

> 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.
>

i tried it and it does work.  i'll add a comment to the files though to 
make sure it's clear.

Thanks.
Chris


More information about the Fortran mailing list