X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0	tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4F10503F.8010404@gmail.com>
Date: Fri, 13 Jan 2012 15:39:43 +0000
From: Dave Korn <dave.korn.cygwin@gmail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: trouble with cgreen test runner in cygwin
References: <Pine.NEB.4.64.1201121808140.24276@cesium.clock.org>
In-Reply-To: <Pine.NEB.4.64.1201121808140.24276@cesium.clock.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

