Re: Code coverage with gcov under SnowLeopard/Xcode 3.2
Re: Code coverage with gcov under SnowLeopard/Xcode 3.2
- Subject: Re: Code coverage with gcov under SnowLeopard/Xcode 3.2
- From: Kiran B <email@hidden>
- Date: Mon, 31 Aug 2009 11:41:42 +0530
- "x-copyrighted-material: http://www.robosoftin.com"
Hi,
I do have a Code coverage setup and it used to work in previous seeds
of Snow Leopard. That is until unit test target causing Xcode to hang.
Since seed 10A421 or so, I am not even able to get my code unit tested.
Xcode hangs the moment Unit test target is built. So does your Unit
test target build successfully?
In my Mac (MacPro3,1) the following steps would result in a Hang :
1. Create a new project based on "Cocoa Application" template.
2. Add a Unit Test Target to the project.
3. Add a Unit Test case file to the target created in step3.
4. Add a dummy test case in the newly added file. [Optional step; This
does not affect the hang]
5. Select and Build the Unit Test target.
Xcode hangs at this stage. Force quitting Xcode is the only way out.
Am sure Apple would not release a product with such obvious defect. So
I feel some of my custom setting or Mac configuration is causing this.
I did a clean install with the seed 10A432. But no change in the
observation. I have even submitted the Hang Report via Hang Reporter.
Anybody else getting this issue?
Regards,
Kiran
On Sat, Aug 29 2009, at 4:00 PM, Frank Illenberger wrote:
Hi there,
I used to work with gcov under Leopard to track unit test code
coverage. With the latest Xcode 3.2 under SnowLeopard and the 10.6
SDK it does not work anymore. I have a build configuration which
adds -lgcov and GCC_GENERATE_TEST_COVERAGE=YES
When I run my tests, I get the usual .gcda and .gcno files, but when
I analyze them with the gcov tool, the generated .gcov files show no
hits for any line of code.
Does anybody know how to get this to work under 10.6?
Cheers
Frank
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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