This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: documentation on writing testcases?


On Fri, Mar 11, 2005 at 11:52:25AM +0000, Joseph S. Myers wrote:
> On Fri, 11 Mar 2005, Per Bothner wrote:
> 
> > So the immediate question is: how should the testcase be fixed?
> 
> Specify a line number in the second dg-error to tell dejagnu what line to 
> expect the error on.
> 
> { dg-error "expected regexp" "test name" { target *-*-* } line-number }
> or
> { dg-error "expected regexp" "test name" { xfail *-*-* } line-number }
> 
> > The general frustration is: where is dg-error documented?
> 
> It ought to be in the dejagnu manual (i.e., that's where documentation 
> should best be contributed) since dg-error is part of base dejagnu.

There's some information about test directives in the GCC Internals
manual in the Testsuites section.  I couldn't find much about these
things in the DejaGnu documentation.

Janis


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