Re: [Boost-users] Boost.Test Framework to test a DLL
Hi Ovanes,
this is, why I added 'printf("Initializing\n"); to init_unit_test() in my DLL. As this is indeed printed before the error message, I think that the lib is found and loaded.
Furthermore, if the lib cannot be found, I get:
C:\Projekte\Test\NetControl\bin>console_test_runner --test NetCtrl.dll
Boost.Test framework internal error: unknown reason
So it seems that the DLL is loaded and init_unit_test() is invoked, but the test cases are not registered ...
Christian
________________________________
Von: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] Im Auftrag von Ovanes Markarian
Gesendet: Dienstag, 15. Jänner 2008 18:40
An: boost-users@lists.boost.org
Betreff: Re: [Boost-users] Boost.Test Framework to test a DLL
Is there any chance that Boost.Test can not load (find) your DLL? Try to copy console_test_runner into the directory which contains your DLL? Debug DLLs under VC++ have usually a suffix 'D' before .dll. The letter NetCtrl->d<-.dll is probably this suffix. If not, add it, so that the name is NetCtrldD.dll
With Kind Regards,
Ovanes
On Jan 15, 2008 9:55 AM, Plonka Christian
participants (1)
-
Plonka Christian