Hi Rob, Thanks for that answer! I eventually stumbled on this URL: http://tinyurl.com/ylpjtl which helped. Following the example I then did it this way: test->add( BOOST_TEST_CASE( boost::bind( &default_ctor_param, argv, argc ) ), 0); I will have to have a think on which way is the better way. Do you have any views on the Pro's and Con's using BOOST_AUTO_TEST_CASE and manually adding it using the test_suite->add method? Thanks for the help, Peter.
------------------------------
Message: 7 Date: Sun, 7 Jan 2007 11:08:54 +0000 (UTC) From: Rob Caldecott
Subject: Re: [Boost-users] [Boost.test] [BOOST_AUTO_TEST_CASE] accessing argc and argv To: boost-users@lists.boost.org Message-ID: Content-Type: text/plain; charset=us-ascii Peter
writes: is it possible to access argc and argv?
I had the same problem. You can use boost::unit_test::auto_unit_test_suite()->argc and boost::unit_test::auto_unit_test_suite()->argv.
Regards.