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 252885

Summary: Running C++ test does not recompile dependent class
Product: cnd Reporter: biziosan
Component: UnitTest SupportAssignee: ilia
Status: RESOLVED FIXED    
Severity: normal CC: sarigalin
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Example of CPP application used to replicate the bug

Description biziosan 2015-06-08 16:28:38 UTC
Created attachment 154114 [details]
Example of CPP application used to replicate the bug

I am writing some tests for a C++ class and I am using the test itself to debug it.

I realized that, when I find a bug and fix it in the C++ class code, if I do not explicitly recompile the test, the test still fails. 

It seems that the IDE or CPP compiler does not detect changes in the code of the class dependent to the test.

I attached a simple CPP application. Modifying the return value in the ClassUnderTest.hpp, the test succeeds (or fails). Changing the ClassUnderTest code does not effect the result unless the test is explicitly recompiled.
Comment 1 Quality Engineering 2015-09-08 01:21:32 UTC
Integrated into 'main-silver', will be available in build *201509080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fd5e0a4de674
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixed Bug #252885 - Running C++ test does not recompile dependent class
Comment 2 ilia 2015-09-14 11:03:58 UTC
Fixed in:
  http://hg.netbeans.org/main-silver/rev/fd5e0a4de674
Comment 3 ilia 2015-09-25 13:11:49 UTC
*** Bug 239271 has been marked as a duplicate of this bug. ***