Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] Crash when running my unit tests
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-05-08 11:33:34


Gennadiy, thanks for your input. As I wrote in my last email the
problem was fixed by linking to the correct runtime lib. One of my
image libs was not correctly built.

I cannot reproduce the problem anymore.

Regards,
Christian

On Fri, May 8, 2009 at 4:30 AM, Gennadiy Rozental <rogeeff_at_[hidden]> wrote:
> Christian Henning <chhenning <at> gmail.com> writes:
>
>>
>> Thanks Ovanes for your quick reply. The only global variables I'm
>> using in my test suite are in some strings representing paths and
>> filenames. I have removed them to see if that changes anything but it
>> doesn't. Same problem as before.
>>
>> The problem seems to be with tiff_test.cpp. When excluding it from the
>> test suite all works. Including it generates the crash.
>>
>> One more thing regarding my test suite. I'm testing various image
>> formats, like bmp, png, etc, and each format basically runs through
>> similar tests. To avoid name collisions I use namespaces for each
>> format. Each of those namespaces contain tests with the same name,
>> like this:
>>
>> bmp_test.cpp:
>> namespace bmp_test {
>> BOOST_AUTO_TEST_CASE( read_image_test ) {}
>> }
>>
>> png_test.cpp:
>> namespace png_test {
>> BOOST_AUTO_TEST_CASE( read_image_test ) {}
>> }
>>
>> I hope such use case is fine with boost::test.
>
> No. I do not think so. You need to create actual test suites (they include the
> namespace as well)
>
> BOOST_AUTO_TEST_SUITE( bmp_test )
>
> BOOST_AUTO_TEST_CASE( read_image_test ) {}
>
> BOOST_AUTO_TEST_SUITE_END()
>
> If you still see the issue please post simple example. You are using trunk
> version, right?
>
> _______________________________________________
> 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