I'm trying to add OCMock to my iOS 4 project. To test this, I have a Person class with one method, -hello . When I run this test:
- (void) testMock { id mock = [OCMockObject mockForClass:[Person class]]; [[mock expect] hello]; [mock hello]; [mock verify]; }
Everything is in order, and the assembly is completed successfully. If I pick up the hello call, for example:
- (void) testMock { id mock = [OCMockObject mockForClass:[Person class]]; [[mock expect] hello]; [mock verify]; }
I expect to receive an error message informing me that my expected method was not called in mock. Instead, I get a cryptic test setup failure message:
/Developer/Tools/RunPlatformUnitTests.include:451:0 Test rig '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/Developer/usr/bin/otest' exited abnormally with code 134 (it may have crashed).
Is this failure normal when the expected method is not called? Am I having a bad configuration?
bsstokes
source share