[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4669

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P3

--


[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4669

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2015-06-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4669

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|D1  D2 |D2

--


[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2014-06-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4669

Maor m...@weka.io changed:

   What|Removed |Added

 CC||m...@weka.io

--- Comment #7 from Maor m...@weka.io ---
I can confirm this issue on both Mac os x and Linux.

It's a real issue when trying to write a non trivial project and using
unittests.

--


[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2013-01-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4669



--- Comment #5 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-01-13 
09:02:59 PST ---
The cause is this code in 'FuncDeclaration::toObjFile':

if (multiobj  !isStaticDtorDeclaration()  !isStaticCtorDeclaration())
{   obj_append(this);
return;
}

'multiobj' is true when -lib is passed, this unittest is then deferred to be
generated later (and it *is* generated later), however it never seems to be
run.

Anyway a qujick fix is to add a check for lib generation:

if (multiobj  !global.params.lib  !isStaticDtorDeclaration() 
!isStaticCtorDeclaration()) { }

This makes the unittest work, but I don't know if that's a proper fix.

Any backend experts know more?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2012-10-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4669


PhilLavoie maidenp...@hotmail.com changed:

   What|Removed |Added

 CC||maidenp...@hotmail.com
 OS/Version|Linux   |Windows


--- Comment #4 from PhilLavoie maidenp...@hotmail.com 2012-10-14 14:57:54 PDT 
---
Yeah, I also confirm this issue on Windows. Since unit testing plays an
important part in software construction, I hope that it gets the attention it
deserves and gets fixed soon :). Love D 4 Life.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2011-09-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4669


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-09-15 
07:10:13 PDT ---
This needs more attention imho. If unittests are first-class citizens in D then
we shouldn't have to use workarounds just to trigger them in a library.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2010-08-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4669


Stephan Dilly s...@extrawurst.org changed:

   What|Removed |Added

   Keywords||wrong-code
 CC||s...@extrawurst.org


--- Comment #1 from Stephan Dilly s...@extrawurst.org 2010-08-17 10:13:09 PDT 
---
i can confirm that unittests in static librarys build by dmd does not get
triggered on windows too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---