• 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: Running otest in Instruments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running otest in Instruments


  • Subject: Re: Running otest in Instruments
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 17 Aug 2009 09:12:45 +0100

On 16 Aug 2009, at 23:29, Gideon King wrote:

I have some tests that are working fine in xcode, but I am having difficulty getting them running in Instruments. Would appreciate help to sort out the args.

Currently I am using

Executable: /Developer/Tools/otest
Environment: NSZombieEnabled YES
Args: -SenTest Self /whatever/Whatever.octest

Output is as follows:

[snip]

This seems to suggest that the otest will not run my tests because their is an architecture mismatch...but it works fine inside xcode.

Any suggestions?

My guess is that your test bundle is built for an architecture other than the default one for your machine. otest is a universal binary with support for x86_64, i386 and ppc, and the system will run whichever one it thinks is most appropriate. You either need to make sure that your test bundle is built for (at least) that architecture, *or* you need to run otest specially such that it picks the right one.


You can do that by setting things up as follows:

Executable: /usr/bin/arch
Args: -i386 /Developer/Tools/otest -SenTest Self /whatever/ Whatever.octest
^^^^
or other architecture


A couple of other useful hints: if you don't wish to use garbage collection, you will want to add OBJC_DISABLE_GC=YES to your environment, and if you're trying to debug a framework then you'll also want to add the build path to DYLD_FRAMEWORK_PATH.

Hopefully that should resolve the problem.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________
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: 
 >Running otest in Instruments (From: Gideon King <email@hidden>)

  • Prev by Date: Re: 'remoteGlobalIDString' keeps changing in the .xcodeproj
  • Next by Date: Re: how do you go back
  • Previous by thread: Running otest in Instruments
  • Next by thread: Category in Static Library
  • Index(es):
    • Date
    • Thread