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 199367 - debugger.jpda unit tests do not run (hang)
Summary: debugger.jpda unit tests do not run (hang)
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2011-06-12 15:39 UTC by pganelin
Modified: 2011-06-18 15:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log of ant execution with dump of all thread (201.26 KB, application/octet-stream)
2011-06-12 15:39 UTC, pganelin
Details
The deadlock that I've got. (25.55 KB, text/plain)
2011-06-13 07:44 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pganelin 2011-06-12 15:39:41 UTC
Created attachment 108865 [details]
log of ant execution with dump of all thread

I was not able to run unit tests for debugger.jpda project. I tried from both ant and Netbeans IDE without success. Output from ant with -v flag is attached.
I also tried both 7.0 and DEV branch from Mercurial. Both hang. 

PS. Please note that unit tests for other project run fine. For example debugger.jpda.projects run OK. The issue is limited to this particular project.
Comment 1 Martin Entlicher 2011-06-13 07:43:35 UTC
Reproduced on Linux as well.
I've got a deadlock.
Comment 2 Martin Entlicher 2011-06-13 07:44:41 UTC
Created attachment 108872 [details]
The deadlock that I've got.
Comment 3 Martin Entlicher 2011-06-16 09:40:19 UTC
The tests "run" really badly. And they run in a different environment from the production.
Lookup items that represent debugger services in the test are of class
org.netbeans.modules.openide.filesystems.RecognizeInstanceFiles$FOItem
but in the production environment they are of class
org.openide.loaders.FolderLookup$ICItem
Their behavior is different.
Comment 4 Martin Entlicher 2011-06-17 15:19:27 UTC
Fixed by changeset:   195984:e830b4062419
http://hg.netbeans.org/main/rev/e830b4062419

The tests have to run in IDE environment. All tests should pass, only ThreadBreakpointTest is failing.
Comment 5 Martin Entlicher 2011-06-17 15:27:22 UTC
See issue #199503 for problems in ThreadBreakpointTest.
Comment 6 Quality Engineering 2011-06-18 15:12:12 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/e830b4062419
User: mentlicher@netbeans.org
Log: #199367 Deadlock problem in Lookup resolved, JPDA tests run in IDE environment now because of correct behavior of lookup items, some tests adjusted a bit.