www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - -unittest doesn't work when linking against shared libraries

reply Timothee Cour <thelastmammoth gmail.com> writes:
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?
Dec 07 2017
parent Neia Neutuladh <neia ikeran.org> writes:
On Thursday, 7 December 2017 at 22:34:01 UTC, Timothee Cour 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?
There are a few test runners around that handle testing manually. You can try one of them or roll your own. That might fail, however. It would be worthwhile to see how it does -- is `foo` absent the runtime's list of all modules?
Dec 07 2017