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.
Summary: | Please stabilize TemplatesPanelTest.testIgnoresSimplefolders | ||
---|---|---|---|
Product: | platform | Reporter: | Ondrej Vrabec <ovrabec> |
Component: | Templates | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Test failure can be reproduced after this change. |
Description
Ondrej Vrabec
2015-07-29 09:38:58 UTC
Agreed, I also noticed. Error Message Empty: [org.netbeans.modules.templates.ui.TemplatesPanel$TemplateNode[name=null][Name=SimpleFolder, displayName=SimpleFolder]] expected:<0> but was:<1> Stacktrace junit.framework.AssertionFailedError: Empty: [org.netbeans.modules.templates.ui.TemplatesPanel$TemplateNode[name=null][Name=SimpleFolder, displayName=SimpleFolder]] expected:<0> but was:<1> at org.netbeans.modules.templates.ui.TemplatesPanelTest.testIgnoresSimplefolders(TemplatesPanelTest.java:136) 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) I'm not able to reproduce that locally. It happened to me once. I've a suspicion that FileObject.get/setAttribute() is involved in this issue. We call fo.setAttribute() in a different thread than fo.getAttribute(). Pushed two stabilization changes: http://hg.netbeans.org/core-main/rev/3d673895ae63 http://hg.netbeans.org/core-main/rev/9065675b8994 Unfortunately, the test still fails, sometimes. Created attachment 155015 [details]
Test failure can be reproduced after this change.
Finally fixed by changeset: 290366:970475ff1d8d http://hg.netbeans.org/core-main/rev/970475ff1d8d Integrated into 'main-silver', will be available in build *201507310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9065675b8994 User: mentlicher@netbeans.org Log: #253938: Synchronize the access to attr. It does not fix the test failure though. |