|
Boost Users : |
From: John (john_gg_mcmahon_at_[hidden])
Date: 2007-04-30 13:26:28
Hi Grennadiy, I downloaded the prebuilt vc80 1.33.1 versionfrom http://www.boost-consulting.com/products/free
John
----- Original Message -----
From: Gennadiy Rozental
Newsgroups: gmane.comp.lib.boost.user
To: boost-users_at_[hidden]
Sent: Monday, April 30, 2007 6:04 PM
Subject: Re: [1.33.1][test][vc80] new user questionconcerning1_33_1\libs\test\doc\examples\unit_test_example1.html&unit_test_example1.cpp/
How did you build the library?
It looks like async exceptions were not enabled during library build.
Gennadiy
"John McMahon" <john_gg_mcmahon_at_[hidden]> wrote in message news:f156ao$rp6$1_at_sea.gmane.org...
Hi, I've built and run this with libboost_unit_test_framework-vc80-mt-gd-1_33_1.lib in my Linker->Input->Additional Dependencies.
The single test looks like this:
void free_test_function()
{
// reports 'error in "free_test_function": test 2 == 1 failed'
BOOST_CHECK(2 == 1); // non-critical test => continue after failure
int* p = (int*)0;
*p = 0;
}
When I run it, I see the falied message (2!=1), but I don't get the final 'No errors found' message since '*p=0' causes an unhandlled exception.
But when I run it with
#include <boost/test/included/unit_test_framework.hpp>
and no library instead, it runs to completion as expected.
Any idea what I'm doing wrong.
thanks in advance,
John McMahon
----------------------------------------------------------------------------
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
------------------------------------------------------------------------------
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
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