Re: unit test exit's abnormally with code 5
Re: unit test exit's abnormally with code 5
- Subject: Re: unit test exit's abnormally with code 5
- From: Corbin Dunn <email@hidden>
- Date: Fri, 19 Nov 2010 14:14:55 -0800
Um, how about :
To enable Objective-C garbage collection for the test rig, run it in an environment without the OBJC_DISABLE_GC environment variable.
And/or make sure your test is compiled fat (especially x86_64)
corbin
On Nov 18, 2010, at 6:50 PM, Shane wrote:
> Shameless bump. Anyone have ideas on this thread?
>
> On Sun, Nov 14, 2010 at 4:33 PM, Shane
> <email@hidden> wrote:
>> I'm trying to put a unit test together, so I've created a new target,
>> added my files to compile and frameworks to link to, then commented
>> out all of my code to where I have an empty setUp, tearDown, and
>> testFunc, but still getting the following error.
>>
>> /Developer/Tools/RunPlatformUnitTests.include:419: note: Running tests
>> for architecture 'x86_64' (GC OFF)
>> objc[13117]: GC: forcing GC OFF because OBJC_DISABLE_GC is set
>> 2010-11-14 16:22:29.300 otest-x86_64[13117:903] The test bundle at
>> /Users/shane/Projects/HHI/hhi/build/Release/UnitTests.octest could not
>> be loaded because its Objective-C runtime information does not match
>> the runtime information required by the test rig. This is likely
>> because the test rig is being run with Objective-C garbage collection
>> disabled, but the test bundle requires Objective-C garbage collection.
>> To enable Objective-C garbage collection for the test rig, run it in
>> an environment without the OBJC_DISABLE_GC environment variable.
>> 2010-11-14 16:22:29.307 otest-x86_64[13118:203] *** NSTask: Task
>> create for path
>> '/Users/shane/HHI/Projects/HHI/hhi/build/Release/UnitTests.octest/Contents/MacOS/UnitTests'
>> failed: 22, "Invalid argument". Terminating temporary process.
>> /Developer/Tools/RunPlatformUnitTests.include:451: error: Test rig
>> '/Developer/Tools/otest' exited abnormally with code 5 (it may have
>> crashed).shane
>>
>> My unit test is an obj-c file with the *.mm extension because I'm
>> testing obj-c as well as some c++ calls to a dyld file.
>>
>> Guess I'm having a hard time interpreting this error.
_______________________________________________
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