This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: documentation on writing testcases?
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: gcc at gnu dot org
- Date: Fri, 11 Mar 2005 11:52:25 +0000 (UTC)
- Subject: Re: documentation on writing testcases?
- References: <423153E9.5010601@bothner.com>
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)