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 249978 - Test failure: SlownessReporterTest.testGetIdeStartup
Summary: Test failure: SlownessReporterTest.testGetIdeStartup
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Logger (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL: http://deadlock.netbeans.org/job/NB-C...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2015-01-23 12:37 UTC by Martin Entlicher
Modified: 2015-03-24 03:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2015-01-23 12:37:16 UTC
Test failure occurs during hudson build:

Failed

org.netbeans.modules.uihandler.SlownessReporterTest.testGetIdeStartup
Failing for the past 2 builds (Since Unstable#3220 )
Took 0.1 sec.
Error Message

expected:<[Application startup]> but was:<[redo]>

Stacktrace

junit.framework.ComparisonFailure: expected:<[Application startup]> but was:<[redo]>
	at org.netbeans.modules.uihandler.SlownessReporterTest.testGetIdeStartup(SlownessReporterTest.java:126)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:102)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:478)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:404)
	at java.lang.Thread.run(Thread.java:744)
Comment 1 Martin Entlicher 2015-01-23 17:01:13 UTC
The problem is, that the Logger is GC'ed in the mean time. It resets it's logging level and therefore the record is not logged.
Comment 2 Martin Entlicher 2015-03-23 08:32:58 UTC
Fixed by changeset:   285749:d39e4546170c
http://hg.netbeans.org/core-main/rev/d39e4546170c
Comment 3 Quality Engineering 2015-03-24 03:33:31 UTC
Integrated into 'main-silver', will be available in build *201503240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d39e4546170c
User: mentlicher@netbeans.org
Log: #249978: Prevent from logger GC so that it's properties are not lost.