• 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
Unit Testing configuration error, Part I
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unit Testing configuration error, Part I


  • Subject: Unit Testing configuration error, Part I
  • From: Sam Krishna <email@hidden>
  • Date: Fri, 29 Aug 2008 17:08:14 -0400

(Canceled the previous version of this post since it was too long)

Platform: Xcode 3.1
OS: Leopard 10.5.4, 2.8Ghz iMac

I'm trying to set up my unit testing environment for dependent testing. After following the steps to configure both Bundle Loader and Test Host settings and creating the first test class, building the test target ('RMTests') as i386-Debug, I get the following error:

/Developer/Tools/RunPlatformUnitTests.include:304: error: Test host '/Volumes/elyon/achilles/Projects/Regex/regexmodeler/RegexModeler/build/Debug/RegexModeler.app/Contents/MacOS/RegexModeler' exited abnormally with code 133 (it may have crashed).

I tried running otest manually on the Test Bundle to see what was happening a little more directly:

----------------
cpe-024-163-061-215:Debug achilles$ /Developer/Tools/otest -SenTest All ./RMTests.octest/
2008-08-29 16:19:04.741 otest[20244:10b] Error loading /Volumes/elyon/achilles/Projects/Regex/regexmodeler/RegexModeler/build/Debug/RMTests.octest/Contents/MacOS/RMTests:  dlopen(/Volumes/elyon/achilles/Projects/Regex/regexmodeler/RegexModeler/build/Debug/RMTests.octest/Contents/MacOS/RMTests, 265): no suitable image found.  Did find:
/Volumes/elyon/achilles/Projects/Regex/regexmodeler/RegexModeler/build/Debug/RMTests.octest/Contents/MacOS/RMTests: mach-o, but wrong architecture
2008-08-29 16:19:04.745 otest[20244:10b] The test bundle at RMTests.octest could not be loaded because it is built for a different architecture than the currently-running test rig (which is running as unknown).
2008-08-29 16:19:04.748 otest[20245:203] *** NSTask: Task create for path '/Volumes/elyon/achilles/Projects/Regex/regexmodeler/RegexModeler/build/Debug/RMTests.octest/Contents/MacOS/RMTests' failed: 8, "Exec format error".  Terminating temporary process.
-----------------

I thought it was a little strange that I'm getting the "built for a different architecture than the currently-running test rig (which is running as unknown)" error. So... I run 'file' on the test binary. Here's what I got:

cpe-024-163-061-215:Debug achilles$ file ./RMTests.octest/Contents/MacOS/RMTests 
./RMTests.octest/Contents/MacOS/RMTests: Mach-O bundle i386

Weird. file says my Bundle is a Mach-O i386 bundle, I'm running on an i386 iMac, and I'm getting the "different architecture" error. 

I have no idea what to do here. I've followed the instructions to the best of my knowledge and googled the archives and found nothing. So now I'm here. Does anyone have any ideas about this?

Live Playfully,

Sam

 _______________________________________________
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: Unit Testing configuration error, part II
  • Next by Date: Bookmarks pop-up - current file only?
  • Previous by thread: Unit Testing configuration error, part II
  • Next by thread: Bookmarks pop-up - current file only?
  • Index(es):
    • Date
    • Thread