forked from boostorg/system
Reenable test_throws_usage() under UBSAN
This commit is contained in:
@ -22,7 +22,6 @@
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <boost/cerrno.hpp>
|
||||
#include <boost/config/pragma_message.hpp>
|
||||
|
||||
// Although using directives are not the best programming practice, testing
|
||||
// with a boost::system using directive increases use scenario coverage.
|
||||
@ -247,17 +246,8 @@ int main( int, char ** )
|
||||
BOOST_TEST( econd.message() != "" );
|
||||
BOOST_TEST( econd.message().substr( 0, 13) != "Unknown error" );
|
||||
|
||||
#if !defined(UBSAN)
|
||||
|
||||
// the current implementation of boost::throws() relies on undefined behavior
|
||||
test_throws_usage();
|
||||
|
||||
#else
|
||||
|
||||
BOOST_PRAGMA_MESSAGE("Skipping test_throws_usage() due to UBSAN");
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_WINDOWS_API
|
||||
std::cout << "Windows tests...\n";
|
||||
// these tests probe the Windows errc decoder
|
||||
|
Reference in New Issue
Block a user