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 227547 - Unit test org.netbeans.modules.cnd.classview.QuoteTestCase.testQuote failed
Summary: Unit test org.netbeans.modules.cnd.classview.QuoteTestCase.testQuote failed
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-03-16 07:31 UTC by Alexander Simon
Modified: 2013-04-02 09:31 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (1.07 KB, patch)
2013-03-20 16:39 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2013-03-16 07:31:46 UTC
Test filed since change set:
http://hg.netbeans.org/main-golden/rev/e7e9a8f3cea7
Commit for bug #227050
Comment 1 Alexander Simon 2013-03-16 07:33:15 UTC
Please, evaluate.
Comment 2 Alexander Simon 2013-03-16 07:34:52 UTC
Test failed due to unexpected messages:

16.03.2013 11:22:35 org.netbeans.modules.settings.RecognizeInstanceObjects$OverObjects <init>
WARNING: Not listening on module system
16.03.2013 11:22:35 org.netbeans.modules.settings.RecognizeInstanceObjects$OverObjects <init>
WARNING: Not listening on module system
16.03.2013 11:22:35 org.netbeans.modules.settings.RecognizeInstanceObjects$OverObjects <init>
WARNING: Not listening on module system
16.03.2013 11:22:36 org.netbeans.modules.settings.RecognizeInstanceObjects$OverObjects <init>
WARNING: Not listening on module system
Comment 3 Vladimir Voskresensky 2013-03-18 09:19:38 UTC
Jarda, can you evaluate it, please. May be original fix has some problems? Or this warnings something which have to be fixed on settings level?
Comment 4 Jaroslav Tulach 2013-03-18 13:57:23 UTC
Why the test fails? Because of printed warning? Can you fix the test?
Comment 5 Alexander Simon 2013-03-20 07:00:10 UTC
the same for test:
org.netbeans.modules.cnd.navigation.switchfiles.CppSwitchTest.testTwoNamesakes
Comment 6 Vladimir Voskresensky 2013-03-20 14:23:03 UTC
Alexander, could you update our tests, please.
Comment 7 Alexander Simon 2013-03-20 16:39:50 UTC
Created attachment 132858 [details]
proposed patch

I do not see any reason why any unit test prints warning.
Comment 8 Jaroslav Tulach 2013-03-21 08:31:59 UTC
The warning is printed to show that settings module is used without full functionality. The warning is primarily intended for production mode.

The fact it influences your tests is sad, but inevitable fact of using settings module without core.startup.

Rather than patching settings module (and breaking the primary purpose of the warning), suppress this warning in your tests.
Comment 9 Alexander Simon 2013-03-21 10:54:18 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/23a7efec607e
Comment 10 Quality Engineering 2013-03-22 01:53:58 UTC
Integrated into 'main-golden', will be available in build *201303212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/23a7efec607e
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #227547 Unit test org.netbeans.modules.cnd.classview.QuoteTestCase.testQuote failed