From 6ea02e2668c16218c7881f36908dafdbabd3c8a7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 29 Jan 2018 02:36:50 +0200 Subject: [PATCH] Reenable test_throws_usage() under UBSAN --- test/error_code_test.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/error_code_test.cpp b/test/error_code_test.cpp index 1f96c59..7965541 100644 --- a/test/error_code_test.cpp +++ b/test/error_code_test.cpp @@ -22,7 +22,6 @@ #include #include #include -#include // 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