sevmgr/0001-Fix-for-Boost-1.59.0-compatibility.patch
2015-08-30 01:22:45 +01:00

39 lines
1.4 KiB
Diff

From 54ebac3f58456feba93e54ef74678bce69863e30 Mon Sep 17 00:00:00 2001
From: Jonathan Wakely <jwakely@redhat.com>
Date: Sun, 30 Aug 2015 01:01:53 +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/sevmgr/EventQueueManagementTestSuite.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/sevmgr/EventQueueManagementTestSuite.cpp b/test/sevmgr/EventQueueManagementTestSuite.cpp
index 4357153..7bad06c 100644
--- a/test/sevmgr/EventQueueManagementTestSuite.cpp
+++ b/test/sevmgr/EventQueueManagementTestSuite.cpp
@@ -16,6 +16,7 @@
#define BOOST_TEST_MODULE EventQueueManagementTest
#include <boost/test/unit_test.hpp>
#include <boost/shared_ptr.hpp>
+#include <boost/version.hpp>
// StdAir
#include <stdair/stdair_basic_types.hpp>
#include <stdair/stdair_date_time_types.hpp>
@@ -43,7 +44,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