• 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: unit testing bsd C library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unit testing bsd C library


  • Subject: Re: unit testing bsd C library
  • From: Philip Grandinetti <email@hidden>
  • Date: Sat, 19 Sep 2009 16:07:26 -0400

Thanks Philippe. That makes sense. I was confused since the Apple Reference...

http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/UnitTesting/Articles/CreatingTests.html#//apple_ref/doc/uid/TP40002171

states...

"If you are writing a C/C++ program, select the Carbon > Unit Test Bundle target. You do not have to use the Carbon libraries to use this target."

Why do you think they grouped C in with C++, instead of including it with Objective C?

Thanks again,

Philip


On Sep 19, 2009, at 4:02 PM, Philippe Casgrain wrote:

Le 2009-09-19 à 15:57, Philip Grandinetti a écrit :

I'm writing a BSD C library in Xcode 3.2 and I would like to write unit tests for my library functions. In Xcode 3.2 there is a template for setting up Objective C unit tests, but I can't find anything for setting up unit tests for a C library. Does anyone have any suggestions?

Your Obj-C Unit Test bundle can simply link against your C library, and contain all the tests. Obj-C is perfectly happy to call straight C.


Philippe

_______________________________________________ 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: 
 >unit testing bsd C library (From: Philip Grandinetti <email@hidden>)

  • Prev by Date: unit testing bsd C library
  • Next by Date: Problem using .zerofill / -segaddr to create very large segments
  • Previous by thread: unit testing bsd C library
  • Next by thread: Problem using .zerofill / -segaddr to create very large segments
  • Index(es):
    • Date
    • Thread