This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dejagnu help again..




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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]