Community
Participate
Working Groups
I looked at that and the assert just counts messages in the log. Basically, it is saying "It always was that way that there is an error in the log but now there is no error in the log anymore so we fail the test". A comment in the code clarifies the reason: "// when running the testcase in head-less mode, the TestExtraPagesProvider class cannot be loaded". I think we can just remove this assert, I suppose TestExtraPagesProvider can be loaded if UI plugin is activated in maven build. testSharedDefaults(org.eclipse.cdt.core.tests.templateengine.TestTemplateEngine) Time elapsed: 0.284 sec <<< FAILURE! junit.framework.AssertionFailedError: Expected number (1) of non-OK status objects differs from actual (0).
Fixed on master.
*** cdt git genie on behalf of Andrew Gvozdev *** bug 357660: JUnit failure: cdt.core testSharedDefaults [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=5ce8c116028fee3fe159fb1cf52a91f3ef5dc2cc
Not sure of this one. We shouldn't be requiring the UI to be loaded during core tests. It points out a problem in the architecture. The UI needs to be an optional component since it may need to be replaced some day.
(In reply to comment #3) > Not sure of this one. We shouldn't be requiring the UI to be loaded during core > tests. It points out a problem in the architecture. The UI needs to be an > optional component since it may need to be replaced some day. I agree with you in principle but isn't it the same as bug 357633 where cdt.managedbuilder.core tests depend on cdt.managedbuilder.ui plugin?
(In reply to comment #4) > (In reply to comment #3) > > Not sure of this one. We shouldn't be requiring the UI to be loaded during core > > tests. It points out a problem in the architecture. The UI needs to be an > > optional component since it may need to be replaced some day. > I agree with you in principle but isn't it the same as bug 357633 where > cdt.managedbuilder.core tests depend on cdt.managedbuilder.ui plugin? Yes, that crossed my mind too. At the moment, I just want a clear build so principle will have to wait.