Boost logo

Boost Users :

Subject: Re: [Boost-users] [Test] failure linking tests dynamically
From: Richard (legalize+jeeves_at_[hidden])
Date: 2014-11-11 13:21:42


[Please do not mail me a copy of your followup]

Latimerius <pvl_at_[hidden]> spake the secret code
<20141108155407.GA22141_at_[hidden]> thusly:

>The program is as follows:
>
>#include "InputWindow.h"
>
>#define BOOST_TEST_MODULE EventActionMgr
>#include <boost/test/unit_test.hpp>
>
>[...]
>
>I suspect memory corruption. The way the output is garbled varies with
>the argument of BOOST_TEST_MODULE. Whether I do or do not #define
>BOOST_TEST_MAIN doesn't seem to matter.

When you define BOOST_TEST_MODULE, it defines BOOST_TEST_MAIN for you.
I need to update my docs on this point.

-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>

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