• 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
Re: Question about gcov in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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!

-- 
Franco "Sensei" Milicchio <email@hidden>

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

References: 
 >Question about gcov in Xcode (From: Yongqiang <email@hidden>)

  • Prev by Date: Re: com.yourcompany
  • Next by Date: Re: com.yourcompany
  • Previous by thread: RE: Question about gcov in Xcode
  • Next by thread: XCode will not debug
  • Index(es):
    • Date
    • Thread