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 54612 - Tests for core/settings are failing on linux and solaris
Summary: Tests for core/settings are failing on linux and solaris
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-02-07 09:15 UTC by Jaroslav Tulach
Modified: 2008-12-22 22:09 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 Jaroslav Tulach 2005-02-07 09:15:43 UTC
Module: core/settings
---------------------

Suite: org.netbeans.modules.settings.EnvTest
Test Case: testFindEntityRegistration
Last failed: 200502061900
Test Case: testFindProvider
Last failed: 200502061900

Suite:
org.netbeans.modules.settings.convertors.SerialDataConvertorTest
Test Case: testCorruptedSettingsFile
Last failed: 200502061900
Test Case: testDeleteOfUnrecognizedSettingsFile
Last failed: 200502061900
Test Case: testDisabledOrUnknownModule
Last failed: 200502061900

Suite:
org.netbeans.modules.settings.convertors.SerialDataNodeTest
Test Case: testDisplayName
Last failed: 200502061900

Suite:
org.netbeans.modules.settings.convertors.XMLPropertiesConvertorTest
Test Case: testCorruptedSettingsFile
Last failed: 200502061900
Test Case: testDeleteSettings
Last failed: 200502061900
Test Case: testLookupSetting
Last failed: 200502061900
Test Case: testModuleDisabling
Last failed: 200502061900
Test Case: testReadWrite
Last failed: 200502061900
Test Case: testSame
Last failed: 200502061900
Test Case: testSameWithGC
Last failed: 200502061900
Test Case: testUpgradeSetting
Last failed: 200502061900
Test Case: testUpgradeSetting2
Last failed: 200502061900
Test Case: testUpgradeSettingWithUnknownClass
Last failed: 200502061900

Suite: org.netbeans.spi.settings.DOMConvertorTest
Test Case: testCreateSetting
Last failed: 200502061900
Comment 1 rmatous 2005-02-10 14:59:40 UTC
There isn't loaded module "org.netbeans.modules.settings.xtest/1
[1.0]" while running test on Linux but on Windows is. Then no
registrations done via mf-layer are reachable which is crucial for test. 

So, there seems to be a problem in test configuration. There might be
expected that testes code isn't the culprit and just tests are wrong.
Jarda, do you have any hint ? 
Comment 2 rmatous 2005-02-10 17:48:32 UTC
The whole problem seems to be that core/settings/test contains
"META-INF/manifest.mf" but ModuleSystem in method loadBootModules
tries to load "META-INF/MANIFEST.MF" which is OK on Windows but not on
Unix.
Comment 3 Jaroslav Tulach 2005-02-10 18:37:24 UTC
Checking in unit/src/META-INF/MANIFEST.MF;
/cvs/core/settings/test/unit/src/META-INF/MANIFEST.MF,v  <--  MANIFEST.MF
initial revision: 1.1
done
Removing unit/src/META-INF/manifest.mf;
/cvs/core/settings/test/unit/src/META-INF/manifest.mf,v  <--  manifest.mf
new revision: delete; previous revision: 1.4
Comment 4 pzajac 2005-02-18 10:24:58 UTC
the tests sometimes fails. Please evaluate .
Comment 5 rmatous 2005-02-22 11:59:25 UTC
There is no fail since this issue was first fixed and closed.
N/A is what is now going on. Probably some setUp problem.

That's difficult for me to evaluate becaue these tests run and pass on
my machine now. I tested it on different JDKs but it works for me.
Could someone ,responsible for running these tests, let it run with
-verbose parametr and provide its output as attachment.

I will try to reproduce it everyday but currently I'm clueless.
Comment 6 rmatous 2005-02-24 17:00:05 UTC
/cvs/core/settings/test/unit/src/org/netbeans/modules/settings/ScheduledRequestTest.java
new revision: 1.3; previous revision: 1.2
Comment 7 rmatous 2005-02-25 09:22:46 UTC
I consider this issue as fixed. Failing test depends unluckily on
timeout which might not be reliable. I hope thar I made it a little
more reliable . 
Comment 8 rmatous 2005-04-15 09:41:16 UTC
Reopened.
Comment 9 rmatous 2005-04-15 13:30:29 UTC
Test removed from release41:

/cvs/core/settings/test/cfg-unit.xml,v  <--  cfg-unit.xml
new revision: 1.6.36.1; previous revision: 1.6
Comment 10 rmatous 2005-07-20 14:37:02 UTC
No one fail in two weeks history. Definitely will be reopened after next fail.