-unittest doesn't work when linking against shared libraries
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Fri Dec 8 02:15:07 UTC 2017
On Thursday, December 07, 2017 14:34:01 Timothee Cour via Digitalmars-d
wrote:
> I have a simple test case to reproduce in
> https://issues.dlang.org/show_bug.cgi?id=18046
> this seems like a serious bug; what would be a workaround when dealing
> with shared libraries?
If you're trying to unit test a shared library, I'd suggest just turning it
into a static library for the tests. Alternatively, you can write the unit
tests in an application that links against the shared library, but that
means separating the tests from the code, which isn't ideal.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list