This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: trouble with cgreen test runner in cygwin
On 13/01/2012 02:16, Matt wrote:
> the test-runner discovers the tests correctly, but when it goes to run
> them, it fails. this is because the CgreenTest* we fetch via dlsym()
> appears to be corrupt.
>
> We'll reduce it to an even smaller, self-contained test case tomorrow.
> If anyone has ideas/suggestions in the meantime, please let me know.
Without having even looked at the code, here's one thing worth verifying:
make absolutely certain that the pointer-to-function type you're dereferencing
the pointer returned from dlsym() as has exactly the same calling convention
as the function definitions do when you're compiling them into the DLL.
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple