documentation on writing testcases?
Joseph S. Myers
joseph@codesourcery.com
Fri Mar 11 12:04:00 GMT 2005
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)
More information about the Gcc
mailing list