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 19747 - Java unit tests (ide mode) hang xtest waiting for dialog
Summary: Java unit tests (ide mode) hang xtest waiting for dialog
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-24 18:52 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 Jesse Glick 2002-01-24 18:52:19 UTC
Whenever I run the complete xtest suite (core, openide, openidex, java), the
java tests in ide mode do not shut down the IDE by themselves - or it tries to
shut down but then displays a save confirmation dialog for
GetDeclaringClassTestTarget.java or something like that. Please ensure that all
files are unmodified at the end of a unit test, else the user must manually
close the dialog to get the test run to continue.
Comment 1 Jesse Glick 2002-01-24 18:54:07 UTC
Actually it would be nice if XTest would automatically die if a modal
dialog is opened in ide mode and the IDE is waiting for the user to do
something, since all tests should be interactive. However java module
does something strange with synchronization that opens a dialog.
Comment 2 Milan Kubec 2002-01-25 08:12:33 UTC
It's strange Jesse, but on our continuous xtester (machine, which runs
xtest suite on every continuous build) all tests run OK. I know that
java ide tests have some delay before they shut down, but they
definitely do. IDE has some switch ..fullhack.. set to true during
testing so it should close all dialogs no matter their modality. Try
to wait little bit longer.
Comment 3 Jesse Glick 2002-01-25 10:21:15 UTC
How much longer? When this happens the test run pauses for at least
ten minutes until I notice my machine's load average has dropped back
to zero and I get worried. :-)
Comment 4 Milan Kubec 2002-01-25 11:14:52 UTC
Well, maybe there is really some problem with tests. I will look at it.
Comment 5 Svata Dedic 2002-03-22 15:31:51 UTC
Milan, did you make any progress investigating the issue ?
Comment 6 Jan Becicka 2002-03-26 14:44:24 UTC
I've added .nbattrs file into appropriate folders.
.nbattrs holds values like
<fileobject name="Foo.java">
   <attr name="SourceSync" bytevalue="0"/>
</fileobject>
it means "do not synchronize Foo.java" -> no dialog should be
displayed now.
Comment 7 Jan Becicka 2002-04-12 15:42:56 UTC
VERIFIED
Comment 8 Quality Engineering 2003-07-01 13:17:36 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 9 Quality Engineering 2007-09-20 10:09:27 UTC
Reorganization of java component