<html>
<head>
<base href="http://bugzilla.gdcproject.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - unittests not linked unless module is imported"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=199">199</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>unittests not linked unless module is imported
</td>
</tr>
<tr>
<th>Product</th>
<td>GDC
</td>
</tr>
<tr>
<th>Version</th>
<td>4.9.x
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>gdc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>ibuclaw@gdcproject.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alex@sunopti.com
</td>
</tr></table>
<p>
<div>
<pre>I have a build system that makes a static library with a bunch of code, and
then links it into several executables.
If I add a new module with unittest{ } section and compile it into the static
library, the unittests are not run by any of the executables unless the module
is referenced somewhere.
All compiled with -funittest switch.
I suspect this is behaviour gdc has inherited from the linker.
gdc should probably force all modules with unittests to be linked in.
This should be a supported development path: write code, test it, integrate it.
Because the code is compiled etc, it can take some time to figure out that the
tests are not being run, and it is not obvious why.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>