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 Mon, Dec 04, 2006 at 07:51:00PM +0000, Manuel López-Ibáñez wrote:
> Dear Janis,
> I am having problems implementing your proposal.
> 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.

Janis


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