Boost logo

Boost Users :

Subject: Re: [Boost-users] First attempt at using Boost::Test is a flop: the program ends with an exception related to std::string but I don't use any
From: John Reid (j.reid_at_[hidden])
Date: 2012-05-21 04:48:26


On 21/05/12 04:50, Ted Byers wrote:
> Here is the full output from my program:
>
>
>
> $ ./decision.test.suite
>
> terminate called after throwing an instance of 'std::logic_error'
>
> what(): basic_string::_S_construct NULL not valid
>
> Aborted (core dumped)
>
>
>
> Now, all the code in this program is focussed on number crunching, so
> none of it involves strings. I am guessing that I missed something in
> setting up a test suite.
>

Just a guess but might it be trying to stream one of your objects to a
std::ostream? Do your classes support this behaviour? I think the
library offers different macros, some of which will print values when
the test fails, others don't. Perhaps you can try those.

John.


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