[Bug testsuite/30612] Testsuite cannot detect duplicated error/warning messages

2010-04-19 Thread iains at gcc dot gnu dot org
--- Comment #5 from iains at gcc dot gnu dot org 2010-04-19 18:26 --- (In reply to comment #4) > Subject: Re: Testsuite cannot detect duplicated > error/warning messages > In this case, I think this will work: > > /* { dg-bogus "foo bar" } */ /* { dg-warning "foo" } */ > > no

[Bug testsuite/30612] Testsuite cannot detect duplicated error/warning messages

2010-04-19 Thread lopezibanez at gmail dot com
--- Comment #4 from lopezibanez at gmail dot com 2010-04-19 17:42 --- Subject: Re: Testsuite cannot detect duplicated error/warning messages > > is there another way? In this case, I think this will work: /* { dg-bogus "foo bar" } */ /* { dg-warning "foo" } */ no? Cheers,

[Bug testsuite/30612] Testsuite cannot detect duplicated error/warning messages

2010-04-19 Thread iains at gcc dot gnu dot org
--- Comment #3 from iains at gcc dot gnu dot org 2010-04-19 16:19 --- (In reply to comment #2) > The reason is the regexp that dejagnu uses to match the output > /usr/share/dejagnu/dg.exp ... > It would be nice if this were configurable or if we could override it. yeah - I've just found

[Bug testsuite/30612] Testsuite cannot detect duplicated error/warning messages

2010-04-17 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2010-04-17 12:56 --- The reason is the regexp that dejagnu uses to match the output /usr/share/dejagnu/dg.exp # Remove all error messages for the line [lindex $i 0] # in the source file. If we find any, success! set line

[Bug testsuite/30612] Testsuite cannot detect duplicated error/warning messages

2010-04-17 Thread iains at gcc dot gnu dot org
--- Comment #1 from iains at gcc dot gnu dot org 2010-04-17 12:19 --- It seems that /* { dg-warning "" "" } */ Is eating all lines where occurs together with the line on which the warning is declared. Otherwise, we'd get an excess errors (which would be perfectly fine as a wa