Re: [Boost-users] Problem with unit test BOOST_AUTO_TEST_MAIN
Yes, if I remove all lib it does run successfully. I identified that tests run from TinyXML lib (opensource). I have to link with other libraries because the code I have to test depends on them. I am just creating tast case to narrow down the problem. I will look in 1.34.o but probably I could not. I will apriceate any solution how to disable particular testing suit (from TinyXML). I could not physically remove those test from the lib. Thanks Vlad -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Gennadiy Rozental Sent: Thursday, July 05, 2007 11:56 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Problem with unit test BOOST_AUTO_TEST_MAIN MessageSorry. I missed this post.
"Sakharuk, Vlad (GMI Development)"
wrote in message
news:AAA38056FF35DE4CB4A65657784B08FAA9E093@MLNYC730MB.amrs.win.ml.com.. .
Hi all,
here is my code:
#define BOOST_AUTO_TEST_MAIN #include
BOOST_AUTO_TEST_CASE( test1 ) { BOOST_CHECK(true); }
I link it dynamically with boost ver 1.3.3.1 with gcc-3.4.4 on Linux 2.6. (Note I did not compile this library myself.)
However there is a lot of other libraries linked to the module but never used.
Bellow is output I am getting. I suspect that other libraries have embedded boost tests. BUT 1) There is no test1 in my output.
Can you try 1.34.0? If you remove all libs, does it appear?
2) How I can remove all unnecessary test and stick only to those in my files only?
Why don't you just don't link with other libraries?
Here is command I have used
test1 --output_format=XML --log_level=success
Gennadiy _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users -------------------------------------------------------- This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing. --------------------------------------------------------
"Sakharuk, Vlad (GMI Development)"
Yes, if I remove all lib it does run successfully. I identified that tests run from TinyXML lib (opensource).
I have to link with other libraries because the code I have to test depends on them. I am just creating tast case to narrow down the problem.
I will look in 1.34.o but probably I could not.
I will apriceate any solution how to disable particular testing suit (from TinyXML). I could not physically remove those test from the lib.
Thanks Vlad
This is impossible naturally in current version of Boost.Test. I will look into allowing you to do this in 1.35.0. The only thing you can try to do (in 1.34) is massage master test suite somehow in test module init function. Gennadiy
participants (2)
-
Gennadiy Rozental
-
Sakharuk, Vlad (GMI Development)