Boost logo

Boost :

Subject: [boost] Error in docs or code when trying zero unit tests
From: Daryle Walker (darylew_at_[hidden])
Date: 2011-12-13 19:57:11


[Woah, Hotmail's Web interface doesn't do unformatted mail; it implements it as formatted mail surrounded by <pre> tags and hex-conversion to almost all the punctuation!]
When I tried the example on <http://www.boost.org/doc/libs/1_48_0/libs/test/doc/html/tutorials/new-year-resolution.html>:
//===#define BOOST_TEST_MODULE const_string test#include <boost/test/unit_test.hpp>//===
Instead of getting:
//===*** No errors detected//===
I got:
//===[Session started at 2011-12-11 18:18:15 -0500.]Test setup error: test tree is empty
CRC Unit Test has exited with status 200.//===
(The first and last lines are from my compiler's IDE.)  Either the docs are wrong claiming that an empty test program is OK, or the code is wrong for choking when running with zero unit tests.  It's probably the former but I personally prefer the latter to be fixed instead.
                                               


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk