Ticket #5249: exception_test.patch

File exception_test.patch, 941 bytes (added by Chris Jefferson, 12 years ago)

Patch to libs/exception/test/cloning_test.cpp

  • libs/exception/test/cloning_test.cpp

     
    180180        catch(
    181181        T & x )
    182182            {
    183             BOOST_TEST(std::string("what")==x.what());
     183            BOOST_TEST(std::string(x.what()).find("what") !=
     184                       std::string::npos);
    184185            boost::exception_ptr p = boost::current_exception();
    185186            BOOST_TEST(!(p==boost::exception_ptr()));
    186187            BOOST_TEST(p!=boost::exception_ptr());
     
    193194            catch(
    194195            T & x )
    195196                {
    196                 BOOST_TEST(std::string("what")==x.what());
     197                BOOST_TEST(std::string(x.what()).find("what") !=
     198                           std::string::npos);
    197199                }
    198200            catch(
    199201            ... )