Ghunit command build error

348 zobrazení
Přeskočit na první nepřečtenou zprávu

Reg

nepřečteno,
8. 8. 2012 10:03:5708.08.12
komu: ghu...@googlegroups.com
Hi guys
     I added the ghunit command build to my project according to this document.
in Xcode 4.4 and Mac os: Mountain lion

But it failed at "make test",

2012-08-08 21:41:38.969 AnalyticsTests[1093:707] Warning: CFFIXED_USER_HOME is not set!  It should be set to the simulated home directory.
RunTests.sh: line 49:  1093 Trace/BPT trap: 5      
"/Users/reg/Codes/P4WorkSpace/RegMac/depot/cto-office/analytics/client/Engine/IOS/dev/Analytics/build/Debug-iphonesimulator/AnalyticsTests.app/AnalyticsTests" -RegisterForSystemEvents
Command /bin/sh failed with exit code 133

and I have no idea about this, I search this error. And my main.m use the UIApplicationMain(argc, argv, nil, @"GHUnitIOSAppDelegate");
Could you help me ?
Thanks
Reg

Joshua Moody

nepřečteno,
15. 8. 2012 8:14:2715.08.12
komu: ghu...@googlegroups.com
Hey Reg,

I am having some problems (possibly related) with the current version of the Scripts/RunTests.sh

When make test is executed, that script is run (see GHUnit Test target > Build Phases > Run Script build phase)

If you have a look at the script you can see CFFIXED_USER_HOME in a couple of places. 

i was having problems with this new RunTests.sh script on my Jenkins CI server (https://groups.google.com/d/msg/ghunit/3FUVnliSwq0/uuIPSbvOcKwJ).

as for your problem, i am seeing this as well.  reverting to an older RunTests.sh is not working.  Nor is trying to set the CFFIXED_USER_HOME in the script (see the commented out lines near the top of the file).

if i do either of the above, i am seeing:  

../Scripts/RunTests.sh: line 49: 98510 Bus error: 10

so the make test is broken as far as i can tell.

the good news is that the framework is working.

one of us should problem make an issue.

jjm

Joshua Moody

nepřečteno,
15. 8. 2012 8:26:1915.08.12
komu: ghu...@googlegroups.com
UPDATE

for better or worse, i am in the middle of reviewing some memory leaks that i have found in GHTesting.  the bus error, i reported above was caused by a change that i made.  i can now run make test.

  • in Scripts/RunTests.sh - uncomment lines 11 - 16
that should do it.

you can also revert to an older version of RunTests.sh that does not include the securityd/GTM stuff.  

sorry about the confusion.

jjm

Xingchi Wang

nepřečteno,
15. 8. 2012 22:01:0915.08.12
komu: ghu...@googlegroups.com
Thanks for your advice,
It(uncomment lines 11-16) works to me, And I used the CFFIXED_USER_HOME variable which in the Apple OCUnit shell scripts( /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/RunPlatformUnitTests)
It seems successful.

Best regards
Reg

2012/8/15 Joshua Moody <joshua...@gmail.com>

jjm

--
You received this message because you are subscribed to the Google Groups "GHUnit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ghunit/-/sct4i2SSYeQJ.

To post to this group, send email to ghu...@googlegroups.com.
To unsubscribe from this group, send email to ghunit+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ghunit?hl=en.

Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv