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: how to test multiple warnings?


On 05/12/06, Janis Johnson <janis187@us.ibm.com> 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...

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