iPhone sdk 3.1.2, xcode 3.1.4, mac os x 10.5.8,
I’m a newbie using OCUnit comes with iphone sdk. The only error i get is:
error: Test rig ‘/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk/Developer/usr/bin/otest’ existed abnormally with code 139 (it may have crashed).
Does anyone know what it is? Thanks.
EDIT: I found the cause. I put very stupid code in the -dealloc of the class I was writing unit tests for. Like this:
- (void)dealloc {
[someObject1 dealloc]; //wtf, dealloc?
[someObject2 dealloc]; //wtf, dealloc?
[super dealloc];
}
And sometimes this will cause code 139, sometimes 138.
When I’ve seen this, it usually means that once of my unit tests has faulty logic and has caused
otestto crash. This isn’t a terribly helpful answer, because code 139 isn’t a terribly helpful error code. Sorry!