EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Unit tests on Windows DLL internals
From: Ralph Lange via Core-talk <core-talk at aps.anl.gov>
To: EPICS Core Talk <core-talk at aps.anl.gov>
Date: Wed, 27 Jan 2021 12:01:55 +0100
Question about developing on Windows:

How do you manage unit testing of internal classes in DLLs?

Internal classes (that are not DLL exported) are by design not visible through the DLL interface, which means linking a unit test against the DLL won't allow it to access the internal APIs it is supposed to test.
(No such problem on Linux where all functions inside the shared library are visible.)

I know I can work around by linking the needed objects directly into the test executable. Is there any preferable or better solution?

Thanks,
~Ralph

Replies:
Re: Unit tests on Windows DLL internals Mark Rivers via Core-talk
Re: Unit tests on Windows DLL internals Michael Davidsaver via Core-talk

Navigate by Date:
Prev: A general question about convert e.g. in longout record drvh, drvl handling Heinz Junkes via Core-talk
Next: Re: A general question about convert e.g. in longout record drvh, drvl handling Ralph Lange via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: A general question about convert e.g. in longout record drvh, drvl handling Heinz Junkes via Core-talk
Next: Re: Unit tests on Windows DLL internals Mark Rivers via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 30 Jan 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·