• 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
Debugging SenTestingKit UnitTests on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging SenTestingKit UnitTests on Leopard


  • Subject: Debugging SenTestingKit UnitTests on Leopard
  • From: Martin Häcker <email@hidden>
  • Date: Mon, 12 Nov 2007 20:32:52 +0100

Hi there,

Can somebody give me a Hint (hi Chris Hanson :) on how to debug UnitTests on Leopard? It works fine on Tiger this way, but on Leopard the app just crashes when run under the debugger (the tests themselves run fine from the xcodebuild).

I've read everything that I could find on this list, cocoa-dev and the apple-docu as well as what I could find via google. So, help please?

For the record: I...
* Created a custom Executable with an argument of -SenTest All
* Added the following Environment Variables:
** XCInjectBundle: $(BUILT_PRODUCTS_DIR)/my unitTests.octest
** DYLD_INSERT_LIBRARIES: $(DEVELOPER_LIBRARY_DIR)/PrivateFrameworks/ DevToolsBundleInjection.framework/DevToolsBundleInjection
** DYLD_FALLBACK_FRAMEWORK_PATH: $(DEVELOPER_LIBRARY_DIR)/Frameworks


If I leave out the last one gdb doesn't even start barfing about not finding SenTestingKit.framework - so I believer that is the right way to fix it, as I cannot just add the searchpath to the buildsetting LD_RUNPATH_SEARCH_PATHS.

What happens is that my app either crashes under the debugger as soon as I have something more complicated than NSLog(@"got here"); in my test - or that I get the output from the tests running on the console (and I can see there that my tests do get handled by OCUnit) but the debugger does not stop on my breakpoints.

Of course its a debug build - and also it works perfectly on tiger with the same setup - minus DYLD_FALLBACK_FRAMEWORK_PATH which isn't neccessary there.

So.... where to go next? I'd really like to break in my unit tests once in a while.

Greetings,
Martin



_______________________________________________
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: Debugging SenTestingKit UnitTests on Leopard
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Problems with class/data model editor in Xcode 3?
  • Next by Date: Re[2]: link stage ignoring my static lib!
  • Previous by thread: Re: Problems with class/data model editor in Xcode 3?
  • Next by thread: Re: Debugging SenTestingKit UnitTests on Leopard
  • Index(es):
    • Date
    • Thread