• 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 08:29:21 +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?

Thanks

Gideon

(ps sorry if you saw this on cocoa-dev before - was suggested that this would be a better place to post)

_______________________________________________
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: Running otest in Instruments
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: ld errors when Cocoa app linking C++ via intermediate ObjC++ library
  • Next by Date: Re: how do you go back
  • Previous by thread: Re: Unexpected NSManagedObject isInserted behavior in iPhone.
  • Next by thread: Re: Running otest in Instruments
  • Index(es):
    • Date
    • Thread