This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: documentation on writing testcases?
- From: Mike Stump <mrs at apple dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Per Bothner <per at bothner dot com>, gcc at gnu dot org
- Date: Fri, 11 Mar 2005 12:06:07 -0800
- Subject: Re: documentation on writing testcases?
On Friday, March 11, 2005, at 03:52 AM, 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 }
Side note, I hate this form... If the numbers were relative, it would
be easier to maintain them... Maybe for line number < 0, we could have
them relative, then one could use -1, -2, -3....