Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Error parser testcases

Hi folks,
 
during my work on https://bugs.eclipse.org/bugs/show_bug.cgi?id=165205 (GCC error parser depends on English locale) I have produced a patch to the error parser framework and would like to verify the results. I looked in the org.eclipse.cdt.core.tests plugin for relevant module tests and found the package org.eclipse.cdt.core.internal.errorparsers.tests. 2 of the four contained classes are actually contain tests.
 
org.eclipse.cdt.core.internal.errorparsers.tests.GCCErrorParserTests.java contains 4 tests, 3 of which fail even without my changes. A short research indicates that GCCErrorParserTests was apparently never run in the automatic test suite. It appears in org.eclipse.cdt.core.suite.AutomatedIntegrationSuite.suite() since it's version 1.31, but always commented out.
 
org.eclipse.cdt.core.internal.errorparsers.tests.FileBasedErrorParserTests succeeds with the given sample output file. The file has a good number of tests, though not too many compiler messages, rather a lot of make output.
 
The changes I made are purely wizard-driven string externalization, so everything should be fine. I also tested the error parser on some sample projects of mine. But it appears that there are no really good test cases for the error parsers in CVS.
 
Any ideas about where I might get good testcases (especially with a variety of compiler error messages) from?
 
 
Thanks,
 
 
Norbert Ploett

Back to the top