• 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 information in OCUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

debugging information in OCUnit


  • Subject: debugging information in OCUnit
  • From: ekellner <email@hidden>
  • Date: Tue, 18 Nov 2008 16:22:00 +0100

Hello,  I am running into a problem getting any debugging symbols during RunUnitTests in OCUnit.  My test is crashing inside my application.  I receive the text of the exception, but no other information such as the filename, line number, or stack trace.  

As you can see in the build output below, RunUnitTests crashes with the error:

Unknown.m:0: error: -[AssetReplacementTest test_replace] : *** -[NSCFString rangeOfString:options:range:locale:]: nil argument

What is difficult is the Unknown.m:0 output, obviously.  I also haven't been able to successfully run this test in gdb, either, which makes me stuck.

I am starting to feel like I am overall taking the wrong approach.  I actually prefer the TDD style, to write app code, and run and debug it through a test harness.  But I can't see how this can work if when my code crashes there is no stack trace.  For my error, the failure is obviously one or two frames above the point where NSString threw a "nil argument" exception.


    /bin/sh -c /Users/basis/src/sednaPresenter/trunk/build/sednaPresenter.build/Debug/PresenterTest.build/Script-4C5A8F880E9108DC009F54CB.sh

/Developer/Tools/RunUnitTests:238: note: Started tests for architectures 'i386'

/Developer/Tools/RunUnitTests:246: note: Running tests for architecture 'i386' (GC ON)

/Developer/Tools/RunUnitTests:281: note: DYLD_INSERT_LIBRARIES=/Developer/Library/PrivateFrameworks/DevToolsBundleInjection.framework/DevToolsBundleInjection XCInjectBundle=/Users/basis/src/sednaPresenter/trunk/build/Debug/PresenterTest.octest XCInjectBundleInto=build/Debug/Presenter Scheduler.app/Contents/MacOS/Presenter Scheduler "build/Debug/Presenter Scheduler.app/Contents/MacOS/Presenter Scheduler" -SenTest All

Test Suite 'All tests' started at 2008-11-18 15:53:31 +0100

Test Suite '/Developer/Library/Frameworks/SenTestingKit.framework(Tests)' started at 2008-11-18 15:53:31 +0100

Test Suite 'SenInterfaceTestCase' started at 2008-11-18 15:53:31 +0100

Test Suite 'SenInterfaceTestCase' finished at 2008-11-18 15:53:31 +0100.

Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds


Test Suite '/Users/basis/src/sednaPresenter/trunk/build/Debug/PresenterTest.octest(Tests)' started at 2008-11-18 15:53:31 +0100

Test Suite 'AssetReplacementTest' started at 2008-11-18 15:53:31 +0100

Unknown.m:0: error: -[AssetReplacementTest test_replace] : *** -[NSCFString rangeOfString:options:range:locale:]: nil argument

Test Case '-[AssetReplacementTest test_replace]' failed (0.042 seconds).

Test Suite 'AssetReplacementTest' finished at 2008-11-18 15:53:31 +0100.

Executed 1 test, with 1 failure (1 unexpected) in 0.042 (0.043) seconds 
 _______________________________________________
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

  • Prev by Date: Re: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
  • Next by Date: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • Previous by thread: Re: ORGANIZATIONNAME -- __MyCompany__ -- Not in User Defaults?!?
  • Next by thread: gcc installation error
  • Index(es):
    • Date
    • Thread