> lexical_cast_test.cpp(105): error in > "test_conversion_to_intr": exception > boost::bad_lexical_cast is expected > lexical_cast_test.cpp(111): error in > "test_conversion_to_intr": exception > boost::bad_lexical_cast is expected > lexical_cast_test.cpp(147): error in > "test_conversion_to_boolle": exception > boost::bad_lexical_cast is expected > > Notice the weird misspellings in the error messages. :)
What do you mean? > > Also these three tests, like MSVC 6, concerns tests where it > doesn't throw > when it's supposed to: > > BOOST_CHECK_THROW(lexical_cast<int>(" 123"), boost::bad_lexical_cast); > BOOST_CHECK_THROW(lexical_cast<int>(std::string(" 123")), > boost::bad_lexical_cast); > BOOST_CHECK_THROW(lexical_cast<bool>(123), boost::bad_lexical_cast); > > If these are omitted for g++ 2.95.x, all tests pass for that compiler. > However, as it compiles without errors on both MSVC 6 and g++ > 2.95.x, maybe > one shouldn't have any BOOST_WORKAROUND's in the test code? > > That will make it show up as failing on MSVC 6 and g++ > 2.95.x, even though > it passes almost all the enabled tests on both. You could use expected failures feature of Boost.Test Gennadiy. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost