On 05/12/06, Janis Johnson <[EMAIL PROTECTED]> wrote:
On Mon, Dec 04, 2006 at 07:51:00PM +0000, Manuel López-Ibáñez wrote:
> The following testcase should fail with current mainline for everydg-bogus.
> It actually passes perfectly :-(.  I have tried removingthe  dg-warning
> tests but then only the first dg-bogus fails, whilethe other dg-bogus pass.
> The results are also unexpected if you removeonly one or two dg-warning.
> Any idea of what is going on ?

Each check for dg-error, dg-warning, or dg-bogus removes the matched
text from the compiler output so it's no longer available to match
later tests.  You'll need separate tests for the dg-warning checks and
the dg-bogus checks.

Like I said before "I have tried removing the dg-warning tests but
then only the first dg-bogus fails while the others pass. Does this
mean that a single dg-bogus is matching everything including warnings
in other lines (and functions) ? That sounds so strange...

Reply via email to