From b86f7d78e401271f5bd0b60ab4403a1db8b57f35 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sun, 30 Aug 2015 02:05:03 +0100 Subject: [PATCH] Fix for Boost 1.59.0 compatibility. Boost.Test has major changes in 1.59.0 including renaming the XML enumerator to OF_XML. --- test/airinv/InventoryTestSuite.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/airinv/InventoryTestSuite.cpp b/test/airinv/InventoryTestSuite.cpp index bdd3083..9930aee 100644 --- a/test/airinv/InventoryTestSuite.cpp +++ b/test/airinv/InventoryTestSuite.cpp @@ -14,6 +14,7 @@ #define BOOST_TEST_MAIN #define BOOST_TEST_MODULE InventoryTestSuite #include +#include // StdAir #include #include @@ -39,7 +40,11 @@ struct UnitTestConfig { /** Constructor. */ UnitTestConfig() { boost_utf::unit_test_log.set_stream (utfReportStream); +#if BOOST_VERSION >= 105900 + boost_utf::unit_test_log.set_format (boost_utf::OF_XML); +#else boost_utf::unit_test_log.set_format (boost_utf::XML); +#endif boost_utf::unit_test_log.set_threshold_level (boost_utf::log_test_units); //boost_utf::unit_test_log.set_threshold_level (boost_utf::log_successful_tests); } -- 2.4.3