This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262758

Summary: Random failures in each running of unit tests in checkConsistency
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description Alexander Simon 2016-07-11 08:19:43 UTC
For ages each unit tests running has a several exceptions:
@[Test testInCpuComputeSupportMetricImplInMethodCallParam at Sun Jul 10 00:56:31 MSK 2016]
	at org.netbeans.modules.cnd.utils.CndUtils.assertTrueInConsole(CndUtils.java:222)
	at org.netbeans.modules.cnd.utils.CndUtils.assertTrueInConsole(CndUtils.java:287)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.checkFileEntryConsistency(ProjectBase.java:309)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.checkFileContainerConsistency(ProjectBase.java:287)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.checkConsistency(ProjectBase.java:264)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.dispose(ProjectBase.java:3031)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.disposeProject(ModelImpl.java:367)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.disposeProject(ModelImpl.java:354)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.shutdown(ModelImpl.java:586)
	at org.netbeans.modules.cnd.modelimpl.trace.TraceModelBase.shutdown(TraceModelBase.java:112)
	at org.netbeans.modules.cnd.modelimpl.trace.TraceModel.shutdown(TraceModel.java:272)
	at org.netbeans.modules.cnd.modelimpl.trace.TestModelHelper.shutdown(TestModelHelper.java:139)
	at org.netbeans.modules.cnd.modelimpl.test.ProjectBasedTestCase.tearDown(ProjectBasedTestCase.java:270)
	at org.netbeans.modules.cnd.completion.cplusplus.ext.CompletionBaseTestCase.tearDown(CompletionBaseTestCase.java:80)
	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:518)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:293)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1182)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1033)
Comment 1 Alexander Simon 2016-07-11 08:27:48 UTC
temporary workaround in change set:
http://hg.netbeans.org/cnd-main/rev/ea7a9ff4d2ca
- do not mark working test as fail.
Comment 2 Vladimir Voskresensky 2016-07-11 11:10:33 UTC
thanks for workaround
Comment 3 Quality Engineering 2016-07-12 01:52:38 UTC
Integrated into 'main-silver', will be available in build *201607120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ea7a9ff4d2ca
User: Alexander Simon <alexvsimon@netbeans.org>
Log: work around Bug #262758 Random failures in each running of unit tests in checkConsistency
- no body interesting in the exception for ages. Temporary disable  messages because it marks working test as failed.