mirror of
https://github.com/boostorg/uuid.git
synced 2026-01-19 04:42:16 +00:00
Enable test_serialization under UBSan
This commit is contained in:
@@ -82,21 +82,11 @@ rule test_all
|
||||
return $(all_rules) ;
|
||||
}
|
||||
|
||||
# disabled in UBSAN builds due to issues in Boost.Serialization
|
||||
if ! [ os.environ UBSAN_OPTIONS ]
|
||||
{
|
||||
test-suite uuid-serialization :
|
||||
# test serializing uuids
|
||||
[ run test_serialization.cpp ../../serialization/build//boost_serialization ]
|
||||
|
||||
# TODO - This test fails to like with boost_wserialization
|
||||
# [ run test_wserialization.cpp
|
||||
# ../../serialization/build//boost_serialization
|
||||
# ../../serialization/build//boost_wserialization
|
||||
# : : : <dependency>../../config/test/all//BOOST_NO_STD_WSTREAMBUF
|
||||
# ]
|
||||
[ run test_serialization.cpp /boost//serialization ]
|
||||
#[ run test_wserialization.cpp /boost//serialization /boost//wserialization ]
|
||||
;
|
||||
}
|
||||
|
||||
test-suite uuid :
|
||||
[ test_all ]
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
// Purpose to test serializing uuids with wide stream archives
|
||||
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
|
||||
@@ -58,7 +58,7 @@ void test_archive()
|
||||
BOOST_TEST_EQ(u1, u2);
|
||||
}
|
||||
|
||||
int test_main( int /* argc */, char* /* argv */[] )
|
||||
int main()
|
||||
{
|
||||
using namespace std;
|
||||
using namespace boost::archive;
|
||||
|
||||
Reference in New Issue
Block a user