Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost with C code.. please help...
From: Sargrad, Dave (Dave.Sargrad_at_[hidden])
Date: 2012-02-02 12:16:54

A good starting point is to select an appropriate unit test package.

We use cxxtest in our program. There are several other good options.

Documentation for cxxtest is fairly straightforward.

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Steven
Sent: Thursday, February 02, 2012 12:13 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Boost with C code.. please help...


On 02/02/2012 06:59 AM, Kamalkishor wrote:
> Hello,
> I am very new to Boost. I have to write unit test cases in order to
> increase the code coverage of a C source code.
> I am not getting the approach to start writing the test cases.
> As it is a code C code, there are huge number of functions, one
> calling the other, and a lot of global variables.
> Can anyone please help me out to get the approach to start writing
> Unit test cases.

You want to test every aspect of the
expected behavior of each function.
Dealing with global variables is a pain,
though. You should probably use a text
fixture to reset them all for each test

> And, I have used a "c++" compiler for compiling small Boost programs.

> I am getting error while using "GCC" compiler.
> Can we use GCC compiler for compiling Boost program? How can we do

c++ is GCC. It just adds the C++ runtime libraries
to the linker and treats source files as C++.

In Christ,
Steven Watanabe
Boost-users mailing list
This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at