GTM with Hamcrest on iPhone OS4 is crashing but why ?

5 views
Skip to first unread message

vincent daubry

unread,
Aug 2, 2010, 11:43:21 AM8/2/10
to google-toolbox-for-mac
Hi,

I'm using GTM with Hamcrest and it used to work just fine until i
upgraded to SDK4, now it's crashing with very few informations :

Test Case '-[FundDetailModelTest testInitWithDictionary]' started.
./GTM/RunIPhoneUnitTest.sh: line 123: 13161 Segmentation fault
"$TARGET_BUILD_DIR/$EXECUTABLE_PATH" -RegisterForSystemEvents

Has anybody been able to make GTM and Hamcrest work together on iphone
SDK4 ?

Thanks,
Vincent.


P.S: I use GTM a lot and i believe this is the best testing tool for
iPhone, thanks again for your work guys !
But (there is always a but ;) the logs are just awful : there are
about 200 lines of tracing info which are almost useless and when
there is actually an unexpected error we have almost no clue about
what happened (or a very crytic message).
I know this requires a lot of work but i think that better logging
would be a huge improvement to this great tool.

Justin DeWind

unread,
Aug 2, 2010, 12:04:11 PM8/2/10
to google-tool...@googlegroups.com
Vincent,

The problem is that dynamic invocation (NSInvocation) does not work on the iPhone Simulator in iOS 3.2 and greater. You can temporarily patch OCHamcrest by having it raise an exception directly via the testCase and not through an NSInvocation object.

Attached is the patch.

Justin DeWind



--
You received this message because you are subscribed to the Google Groups "google-toolbox-for-mac" group.
To post to this group, send email to google-tool...@googlegroups.com.
To unsubscribe from this group, send email to google-toolbox-fo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-toolbox-for-mac?hl=en.


hamcrest_ios4_fix.patch
Reply all
Reply to author
Forward
0 new messages