KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to unit test some iphone code that instantiates fonts. I've narrowed it down to the following crashing unit test: #import "test.h" #import <UIKit/UIKit.h> @implementation test - (void)testFonts { [UIFont systemFontOfSize:12]; } @end This crashes with the error: Test Case '-[test testFonts]' started. /Developer/Tools/RunPlatformUnitTests.include: line 415: 79768 Trace/BPT trap "${THIN_TEST_RIG}" "${OTHER_TEST_FLAGS}" "${TEST_BUNDLE_PATH}" /Developer/Tools/RunPlatformUnitTests.include:451: error: Test rig '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.sdk/Developer/usr/bin/otest' exited abnormally with code 133 (it may have crashed). It seems like there's some setup I'm not doing in my unit test target to make this work. How do you unit test things that instantiate fonts?
Tags (comma-separated)
Save Edits
Cancel