Re: Loading GC test bundles
Re: Loading GC test bundles
- Subject: Re: Loading GC test bundles
- From: Chris Hanson <email@hidden>
- Date: Sat, 18 Jul 2009 15:59:08 -0700
GC is opt in on a per-process rather than per-binary basis.
Thus in order to load a GC bundle, OCRunnerTool needs to be built at
least GC-supported and running under GC.
You'll need to determine in advance whether to run tests GC or not,
and then invoke OCRunnerTool with the appropriate environment variable
set to disable GC when not.
-- Chris
On Jul 18, 2009, at 8:18 AM, Martin Pilkington <email@hidden>
wrote:
Hi,
I'm the developer of a GUI for OCUnit called OCRunner. I'm having an
issue with loading test bundles that use GC into the app. It brings
up the following error:
18/07/2009 2:37:05 pm OCRunnerTool[9566] Error loading /Test/Binary/
Path: dlopen(/Test/Binary/Path, 265): no suitable image found. Did
find:
/Test/Binary/Path: GC capability mismatch
This appears for both my foundation tool which runs the test
(OCRunnerTool) and the GUI app that displays the results (OCRunner).
Both these run fine except they show no tests run, probably due to
the bundle simply not being loaded. At first I thought the problem
was that GC was set as unsupported on both of these targets but
setting it to either supported or required brings up the same issue.
I've looked around but the only thing I've found relating to OCUnit
and GC is something about framework tests running with GC required
not being supported in Xcode 3.0. The tests run fine using the
default run tool included with the dev tools.
The project is open source and the source can be found at: http://bazaar.launchpad.net/~pilky/ocrunner/dev/files
. Hopefully a different pair of eyes (possibly one with more
experience with unit testing with GC) might be able to see something
I'm missing. The code that deals with running tests is /OCRunnerTool
and AppDelegate.m:102-166.
Thanks
---------------------------------
Martin Pilkington
Writer of Weird Symbols
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden