Boost logo

Boost Users :

From: Peter (pjfoley_at_[hidden])
Date: 2007-01-07 01:24:45


Hi,

 

I am trying to learn to use the Boost.Test framework and have read through
the online documents explaining how to use Boost.Test. I have been unable
to find how to access the argc and argv variables while using
BOOST_AUTO_TEST_CASE with "BOOST_AUTO_TEST_MAIN" defined.

 

So my question is using "The automatic registration facility"
(http://tinyurl.com/y2en48) is it possible to access argc and argv?

 

If not does that mean I have to define a "boost::unit_test::test_suite*
init_unit_test_suite ( int argc, char* argv[] )" and use these variables?

 

Thanks,

 

Peter.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net