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 - Running C++ test does not recompile dependent class
Summary: Running C++ test does not recompile dependent class
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: UnitTest Support (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
: 239271 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-08 16:28 UTC by biziosan
Modified: 2015-09-25 13:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example of CPP application used to replicate the bug (6.50 KB, application/x-gzip)
2015-06-08 16:28 UTC, biziosan
Details

Note You need to log in before you can comment on or make changes to this 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. ***