Is it normal that unittests of phobos are executed with my project build?

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 16 07:35:04 PDT 2014


On Saturday, 14 June 2014 at 14:32:10 UTC, Xavier Bigand wrote:
> I get a failure on a test in format.d when I build my own 
> project with unittest. I though importing phobos header would 
> not regenerate their unittest modules.
>
> Any idea of what can cause this issue? I already have 
> reinstalled dmd with visualD completely.

Quite likely that you use rdmd. It compiles dependencies with 
same flags as main target so if you do `rdmd -unittest app.d` all 
modules app imports will be compiled with `-unittest` as well. 
Using custom build process can fix it.


More information about the Digitalmars-d-learn mailing list