• 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
Leak Detection in Unit Test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Leak Detection in Unit Test


  • Subject: Leak Detection in Unit Test
  • From: Tony Romano <email@hidden>
  • Date: Wed, 26 Jan 2011 13:23:07 -0800
  • Thread-topic: Leak Detection in Unit Test

I've set up a dependent unit test for some code I am testing.  I am able to step through code, set breakpoints, etc. I think my environment is set correctly.  

I wanted to test for memory leaks using instruments.  So I modified my code to explicitly not release the objects and proceeded to run Instruments/Leaks from Xcode.  Instruments comes up, the tests run, but I am not seeing any leaks in instruments.  Anyone have experience doing this that can share the proper technique for leak testing while running unit tests?  I've used leaks successfully before in regular applications.

XCode 3.2.5/OS 10.6

TIA,
-Tony
 _______________________________________________
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

  • Follow-Ups:
    • Re: Leak Detection in Unit Test
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: inline, optimize, and call stack visibility?
  • Next by Date: Re: Leak Detection in Unit Test
  • Previous by thread: Annoying IB bug still not fixed
  • Next by thread: Re: Leak Detection in Unit Test
  • Index(es):
    • Date
    • Thread