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 248257 - IDE does not build libraries required for Unit tests
Summary: IDE does not build libraries required for Unit tests
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: UnitTest Support (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 18:10 UTC by Alexander Pepin
Modified: 2015-09-25 13:38 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 Alexander Pepin 2014-10-29 18:10:08 UTC
While the IDE will correctly build the libraries required by an
executable project (Project->Properties->Linker->Libraries), it fails to
build libraries required for tests (Test
Files->Properties->Linker->Libraries).

Steps to reproduce:
- create SubProjects sample application and build it (will be used as test libraries)
- create Quote sample application
- select e.g. disk.cc and create simple tests for it
- call properties on 'Test Files' select Linker and add 'hello4lib' project as a library, 'Build' checkbox is checked   
- call 'Clean Project' on 'hello4lib' node
- call Test on 'Test Files' node in Quote project
Result: Build test failed because hello4lib cannot be found (/usr/bin/ld cannot find -lhello4lib).
Comment 1 Alexander Pepin 2014-10-29 18:15:15 UTC
This is VOC bug.
Comment 2 ilia 2015-09-25 13:38:49 UTC
Fixed, with ***WRONG COMMIT MESSAGE***

changeset:   292407:e22be98b8330
tag:         tip
user:        Ilia Gromov <ilia@netbeans.org>
date:        Fri Sep 25 14:34:57 2015 +0400
summary:     Fixed Bug #239271 - Test unit build system cannot recognize changes in interdependent files and dont recompile relevent test files