Boost logo

Boost Users :

From: Stephen Torri (torrisa_at_[hidden])
Date: 2008-03-11 12:28:39


Why in the heck did the boost unit test framework change to remove main?
Why does the documentation not reflect this? Why are the example
describing the old behavior? How am I now suppose to use the Boost unit
test framework?

The following program will NOT compile because of the change in 1.34.1
since the 1.33:

/* test_grnn.cpp

#include <boost/test/unit_test.hpp>

using namespace boost::unit_test_framework;

void test_distance_squared ()
{
        // do work
}

test_suite*
init_unit_test_suite ( int, char** )
{
  test_suite* test = BOOST_TEST_SUITE ("GRNN test suite");

  // Allow GRNN to allocate our memory at any location
  test->add ( BOOST_TEST_CASE ( &test_distance_squared ) );
  
  return test;
}


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