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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to