[wave] use of BOOST_ASSERT in testing

See libs/wave/test/testwave/cmd_line_utils.hpp This check will have no effect in a release mode test run, unless I'm missing something. I suggest using BOOST_TEST (boost/detail/lightweight_test) instead, but don't forget to return report_errors() from your main(). -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams wrote:
See libs/wave/test/testwave/cmd_line_utils.hpp
This check will have no effect in a release mode test run, unless I'm missing something. I suggest using BOOST_TEST (boost/detail/lightweight_test) instead, but don't forget to return report_errors() from your main().
Agreed, I'm well aware of the differences. The piece of code you're referring to is not meant to help in testing of the library. The BOOST_ASSERT is in there as an aid of internal debugging I put in during the writing of the test itself. It's ok for this to have no effect in release mode. Regrads Hartmut
-- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
David Abrahams
-
Hartmut Kaiser