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

Running otest in Instruments


  • Subject: Running otest in Instruments
  • From: Gideon King <email@hidden>
  • Date: Mon, 17 Aug 2009 02:11:08 +1000

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:

17/08/09 1:44:42 AM otest[7582] Error loading /whatever.octest/ Contents/MacOS/Whatever: dlopen(/whatever.octest/Contents/MacOS/ Whatever, 265): no suitable image found. Did find:
/whatever.octest/Contents/MacOS/Whatever: mach-o, but wrong architecture
17/08/09 1:44:42 AM otest[7582] The test bundle at /whatever.octest could not be loaded because it is built for a different architecture than the currently-running test rig (which is running as unknown).
17/08/09 1:44:42 AM [0x0-0xf00f0].com.apple.Instruments[7554] 2009-08-17 01:44:42.582 otest[7582:807] Error loading /whatever.octest/ Contents/MacOS/Whatever: dlopen(/whatever.octest/Contents/MacOS/ Whatever, 265): no suitable image found. Did find:
17/08/09 1:44:42 AM [0x0-0xf00f0].com.apple.Instruments[7554] / whatever.octest/Contents/MacOS/Whatever: mach-o, but wrong architecture
17/08/09 1:44:42 AM [0x0-0xf00f0].com.apple.Instruments[7554] 2009-08-17 01:44:42.627 otest[7582:807] The test bundle at / whatever.octest could not be loaded because it is built for a different architecture than the currently-running test rig (which is running as unknown).
17/08/09 1:44:42 AM otest[7583] *** NSTask: Task create for path '/ whatever.octest/Contents/MacOS/Whatever' failed: 8, "Exec format error". Terminating temporary process.
17/08/09 1:44:42 AM [0x0-0xf00f0].com.apple.Instruments[7554] 2009-08-17 01:44:42.645 otest[7583:203] *** NSTask: Task create for path '/whatever.octest/Contents/MacOS/Whatever' failed: 8, "Exec format error". Terminating temporary process.


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?


Gideon

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • [OT] Re: Running otest in Instruments
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: Cleaning "garbage" in Core Data
  • Next by Date: [OT] Re: Running otest in Instruments
  • Previous by thread: Re: Loading an AS dict that defines 'point' also causes 'points' to be defined??
  • Next by thread: [OT] Re: Running otest in Instruments
  • Index(es):
    • Date
    • Thread