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



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