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 219840 - Failing tests in stable test distribution
Summary: Failing tests in stable test distribution
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC All
: P1 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2012-10-10 14:50 UTC by Jiri Skrivanek
Modified: 2013-02-27 08:12 UTC (History)
0 users

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 Jiri Skrivanek 2012-10-10 14:50:58 UTC
Please, fix failing tests which started to fail in recent dev builds. Tests are from modules

org.netbeans.modules.cnd.debugger.common2
org.netbeans.modules.cnd.utils
org.netbeans.modules.cnd.highlight
org.netbeans.modules.dlight.nativeexecution

Maybe problem is in getting hostinfo

http://hudson4qe.cz.oracle.com/job/_Temp-cnd/7/jdk=JDK%207,label=Windows7-slave2/testReport/org.netbeans.modules.cnd.utils/SuspendableFileChangeListenerTest/testCreateThenRemoveAsTwoEvents__hudson_localhost_/?

Other results here

http://hudson4qe.cz.oracle.com/job/_Temp-cnd/7/testReport/
Comment 1 Andrew Krasny 2012-10-10 15:21:58 UTC
There is something wrong with the tests distribution - tests fail because hostinfo.sh script cannot be found (it is supposed that it is in netbeans/ide/bin/nativeexecution/ directory after a build).

Could you, please, check that this directory is in place in the tested product?
Comment 2 Jiri Skrivanek 2012-10-11 09:12:16 UTC
The hostinfo.sh is available but InstalledFileLocator cannot find it. For PsProviderTest it helps to extend CndBaseTestCase which sets netbeans.dirs:

public class PsProviderTest extends CndBaseTestCase {
    
    public PsProviderTest(String name) {
        super(name);
    }

For remaining SuspendableFileChangeListenerTest, NbStartLocalTest and 
MacroHashMapTest maybe problem is the same but I don't know how to easily solve it. If you can solve it, just exclude these classes from stableBTD config in project.properties.
Comment 3 Andrew Krasny 2012-10-12 11:07:51 UTC
http://hg.netbeans.org/cnd-main/rev/f27423bdd1f9
Comment 4 Andrew Krasny 2012-10-12 11:40:26 UTC
Addfix: http://hg.netbeans.org/cnd-main/rev/31ec7b3ce9b7
Comment 5 Quality Engineering 2012-10-13 02:07:51 UTC
Integrated into 'main-golden', will be available in build *201210130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f27423bdd1f9
User: Andrew Krasny <akrasny@netbeans.org>
Log: #219840 - Failing tests in stable test distribution

Moved FileLocator initialization (unti tests) from CndBaseTestCase to NativeExecutionBaseTestCase.
Comment 6 Quality Engineering 2012-10-16 02:01:47 UTC
Integrated into 'main-golden', will be available in build *201210160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/859cbb1e7b0a
User: Andrew Krasny <akrasny@netbeans.org>
Log: #219840 - Failing tests in stable test distribution [addfix]