• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSZombieEnabled when running unit tests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSZombieEnabled when running unit tests


  • Subject: Re: NSZombieEnabled when running unit tests
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 19 Aug 2009 18:33:05 +0200


Le 19 août 2009 à 18:13, Sean McBride a écrit :

On 8/19/09 9:52 AM, Paul Summermatter said:

I'm sure I'm missing something stupidly obvious, but I cannot figure
out how to specify arguments when running unit tests. Specifically, I
want to turn on NSZombieEnabled. With applications, I have used the
Executable inspector panel in Xcode to configure arguments. However,
with unit tests, there doesn't seem to be an executable. What am I
missing?

You can add otest to the list of executables in your project.

However, I don't think this will actually work. I tried the same thing
to enable guard malloc for my unit tests, but never got it to work.


Hopefully, someone else will have a solution for us...

Not a direct solution, but NSZombieEnabled can be turn on in another in the code.
#import <Foundation/NSDebug.h> in your main file, and at the beginning of the main function, set the NSZombieEnabled var to YES.


I don't know if changing it after library initialization works or not, but if it does not, you can set this var to YES in the +load method of your unit test.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSZombieEnabled when running unit tests (From: Paul Summermatter <email@hidden>)
 >Re: NSZombieEnabled when running unit tests (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: NSZombieEnabled when running unit tests
  • Next by Date: Re: NSZombieEnabled when running unit tests
  • Previous by thread: Re: NSZombieEnabled when running unit tests
  • Next by thread: Re: NSZombieEnabled when running unit tests
  • Index(es):
    • Date
    • Thread