delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/12/21:17:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,TW_SV
X-Spam-Check-By: sourceware.org
Date: Thu, 12 Jan 2012 18:16:52 -0800 (PST)
From: Matt <matt AT use DOT net>
To: cygwin AT cygwin DOT com
Subject: trouble with cgreen test runner in cygwin
Message-ID: <Pine.NEB.4.64.1201121808140.24276@cesium.clock.org>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi gang,

Long time no post :)

We wrote a kind of "reflective" test runner for the cgreen unit testing 
framework, which uses dlopen() and dlsym(). We're getting a failure under 
Cygwin and could use some guidance on how to debug the issue. While we 
suspect it's related to this post,
http://cygwin.com/ml/cygwin/2010-02/msg00109.html ,
we can't be sure.

Steps:
-install required cygwin packages: cmake, gcc4, g++4, make, subversion, 
etc
-check out cgreen: svn co 
http://cgreen.svn.sourceforge.net/svnroot/cgreen/trunk/cgreen
-cd cgreen && mkdir obj && cd obj && cmake ..
-make
-verify the tests pass: tests/test_cgreen
-now try the test-runner: tools/cgreen-runner tests/cygcgreen_tests.dll

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.

Thanks in advance!


--
tangled strands of DNA explain the way that I behave.
http://www.clock.org/~matt

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019