Export to GitHub

oauthconsumer - issue #1

Tests fail for ppc (when building on i386)


Posted on May 9, 2008 by Helpful Cat

I cleaned and then built all on 10.5.2 on a MacBook Pro. I tried both Debug and Release. I get three errors:

error: -[OATokenTest testInitWithKeychainUsingAppName] : '(null)' should be equal to '123456' Token key was incorrectly populated as: (null)

error: -[OATokenTest testInitWithKeychainUsingAppName] : '(null)' should be equal to 'abcdef' Token secret was incorrectly populated as: (null)

error: Failed tests for architecture 'ppc' (GC OFF)

Comment #1

Posted on Jul 22, 2008 by Happy Rhino

Thanks for reporting this. I have also run into this issue and it appears to be a bug in Apple's unit test framework. If you run these same tests on a PPC machine, they pass. The problem seems to be with the PPC emulation on Intel boxes. I traced it into the Keychain sources provided by Apple as part of Darwin and found that the tests were triggering their fallback error handler for conditions they did not anticipate. There were also "fix me" comments around that area of their code so I stopped pursuing it any further.

I will add a comment in a README file about this matter.

Comment #2

Posted on Jul 6, 2009 by Quick Panda

Hiya, Just thought you'd like to know, I ran into this issue today after connecting to the repo and building the project. Quick google found this issue. However, I can't see any README in the obj-c folder, although there is one in the obj-c1 folder. I'll just ignore those tests for now.

Status: WontFix

Labels:
Type-Defect Priority-Medium