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?