| Summary: | [Tests]Ant Editor gets NPE while getShell | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sarika Sinha <sarika.sinha> |
| Component: | Ant | Assignee: | Andrey Loskutov <loskutov> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | loskutov |
| Version: | 4.11 | ||
| Target Milestone: | 4.11 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| See Also: |
https://git.eclipse.org/r/134724 https://git.eclipse.org/c/platform/eclipse.platform.git/commit/?id=90ea9219418dbf1befe7e56df63dec46c72ebf51 |
||
| Whiteboard: | |||
|
Description
Sarika Sinha
2 tests failed on Mac. https://download.eclipse.org/eclipse/downloads/drops4/I20190106-0150/testResults.php testVerboseStackTrace Failure Incorrect message expected:<BUILD FAILED> but was:<null> junit.framework.ComparisonFailure: Incorrect message expected:<BUILD FAILED> but was:<null> at junit.framework.Assert.assertEquals(Assert.java:100) at junit.framework.TestCase.assertEquals(TestCase.java:261) at org.eclipse.ant.tests.ui.BuildTests.testVerboseStackTrace(BuildTests.java:55) testColor Error Offset > length: 15 > 0 org.eclipse.jface.text.BadLocationException: Offset > length: 15 > 0 at org.eclipse.jface.text.ListLineTracker.getLineInformationOfOffset(ListLineTracker.java:160) New Gerrit change created: https://git.eclipse.org/r/134724 (In reply to Eclipse Genie from comment #2) > New Gerrit change created: https://git.eclipse.org/r/134724 This is the patch for comment 0. Both fails from comment 1 are probably not related, looking on the code I would assume that the ant expects console to be opened & have some output, but this seem to be not the case (see ConsoleLineTracker code). The reason could be failure to start ant or just timing issue with the console output not being yet printed to console. Gerrit change https://git.eclipse.org/r/134724 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.git/commit/?id=90ea9219418dbf1befe7e56df63dec46c72ebf51 Thanks Andrey!! Do not see the error in new build. testVerboseStackTrace failed again. https://download.eclipse.org/eclipse/downloads/drops4/I20190116-1800/testresults/html/org.eclipse.ant.tests.ui_ep411I-unit-mac64_macosx.cocoa.x86_64_8.0.html testVerboseStackTrace Failure Incorrect message expected:<BUILD FAILED> but was:<null> junit.framework.ComparisonFailure: Incorrect message expected:<BUILD FAILED> but was:<null> at junit.framework.Assert.assertEquals(Assert.java:100) at junit.framework.TestCase.assertEquals(TestCase.java:261) at org.eclipse.ant.tests.ui.BuildTests.testVerboseStackTrace(BuildTests.java:55) testColor Error Offset > length: 15 > 0 org.eclipse.jface.text.BadLocationException: Offset > length: 15 > 0 at org.eclipse.jface.text.ListLineTracker.getLineInformationOfOffset(ListLineTracker.java:160) Don't see any NPE in getShell(), This might be a different issue. (In reply to Sarika Sinha from comment #6) > testVerboseStackTrace failed again. > > https://download.eclipse.org/eclipse/downloads/drops4/I20190116-1800/ > testresults/html/org.eclipse.ant.tests.ui_ep411I-unit-mac64_macosx.cocoa. > x86_64_8.0.html > > testVerboseStackTrace Failure Incorrect message expected:<BUILD FAILED> but > was:<null> > > junit.framework.ComparisonFailure: Incorrect message expected:<BUILD FAILED> > but was:<null> > at junit.framework.Assert.assertEquals(Assert.java:100) > at junit.framework.TestCase.assertEquals(TestCase.java:261) > at > org.eclipse.ant.tests.ui.BuildTests.testVerboseStackTrace(BuildTests.java:55) > > testColor Error Offset > length: 15 > 0 > > org.eclipse.jface.text.BadLocationException: Offset > length: 15 > 0 > at > org.eclipse.jface.text.ListLineTracker. > getLineInformationOfOffset(ListLineTracker.java:160) This is a different issue. This is a problem with the console. I see it time to time in UI, I believe there is a big opened for this. |