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

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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