Re: Question about gcov in Xcode
Re: Question about gcov in Xcode
- Subject: Re: Question about gcov in Xcode
- From: Franco Milicchio <email@hidden>
- Date: Thu, 28 Aug 2008 08:53:38 +0200
On Aug 27, 2008, at 11:40pm, Yongqiang wrote: Hi,
I know how to set Xcode to use gcov. My question is if one program like this:
foo() { if (a>0) {a = 1;} else {a =0;} }
If use gcov, the coverage is 50%. Actually, its coveage should be 100%. How can i use gcov in Xcode to get the correct result?
YQ
Can you post a valid and compilable program in order to reproduce your results? In your snippet "a" is undefined and thus you are raising an undefined behavior: **anything** can happen.
Cheers!
--
It's known people give good advice feeling like Jesus in the Temple, it's known people give good advice when they can't give a bad example. (F. DeAndré)
|
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