I have an immediate problem and a general frustration.

The immediate problem is that my lexer patches causes a test
failure in gcc.dg/cpp/direct2.c, because an error that used to
be on line 15 ("expected '=', ',', ';', 'asm' or '__attribute__'
before string constant") is now on line 13.  Since the string
constant is on line 13, I believe this is a fix rather than a
regression.  So I need to move the dg-error on line 15 to line 13
- but there is already a dg-error there, and dejagnu barfs if it
sees two dg-error comments on the same line.

So the immediate question is: how should the testcase be fixed?

The general frustration is: where is dg-error documented?
I looked in:
- the README* files in gcc/testsuite and in gcc.dg;
- the Test Suites chapter of the internals manual
(which mentions "special idioms" but not the basics);
- the "Testsuite Conventions" of codingconventions.html;
- contribute.html;
- install/test.html;
- and of course Google.

In *none* of these did I find documentation on how to write or
understand a test-case, or a link to such documentation.  I'm inclined
to think that most of these above places should have such a link.
--
        --Per Bothner
[EMAIL PROTECTED]   http://per.bothner.com/

Reply via email to