|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76945 - trunk/libs/serialization/test
From: ramey_at_[hidden]
Date: 2012-02-07 15:53:57
Author: ramey
Date: 2012-02-07 15:53:56 EST (Tue, 07 Feb 2012)
New Revision: 76945
URL: http://svn.boost.org/trac/boost/changeset/76945
Log:
some tests included <limits> rather than <boost/limits.hpp>
This made tests for platforms which don't have <limits> fail - specifically PGI.
So we fixed those tests to use <boost/limits.hpp>
Text files modified:
trunk/libs/serialization/test/test_complex.cpp | 6 +++---
trunk/libs/serialization/test/test_cyclic_ptrs.cpp | 1 -
trunk/libs/serialization/test/test_non_default_ctor.cpp | 3 +--
trunk/libs/serialization/test/test_non_intrusive.cpp | 4 ++--
4 files changed, 6 insertions(+), 8 deletions(-)
Modified: trunk/libs/serialization/test/test_complex.cpp
==============================================================================
--- trunk/libs/serialization/test/test_complex.cpp (original)
+++ trunk/libs/serialization/test/test_complex.cpp 2012-02-07 15:53:56 EST (Tue, 07 Feb 2012)
@@ -12,9 +12,6 @@
#include <cstddef> // NULL
#include <cstdlib> // rand
-#include <limits>
-#include <boost/config.hpp>
-
#include <cstdio> // remove
#if defined(BOOST_NO_STDC_NAMESPACE)
namespace std{
@@ -25,6 +22,9 @@
}
#endif
+#include <boost/config.hpp>
+#include <boost/limits.hpp>
+
#include "test_tools.hpp"
#include <boost/preprocessor/stringize.hpp>
#include BOOST_PP_STRINGIZE(BOOST_ARCHIVE_TEST)
Modified: trunk/libs/serialization/test/test_cyclic_ptrs.cpp
==============================================================================
--- trunk/libs/serialization/test/test_cyclic_ptrs.cpp (original)
+++ trunk/libs/serialization/test/test_cyclic_ptrs.cpp 2012-02-07 15:53:56 EST (Tue, 07 Feb 2012)
@@ -19,7 +19,6 @@
}
#endif
-
#include "test_tools.hpp"
#include <boost/detail/no_exceptions_support.hpp>
Modified: trunk/libs/serialization/test/test_non_default_ctor.cpp
==============================================================================
--- trunk/libs/serialization/test/test_non_default_ctor.cpp (original)
+++ trunk/libs/serialization/test/test_non_default_ctor.cpp 2012-02-07 15:53:56 EST (Tue, 07 Feb 2012)
@@ -17,8 +17,6 @@
#include <fstream>
#include <cstdlib> // for rand()
#include <cmath> // for fabs()
-#include <limits>
-
#include <boost/config.hpp>
#if defined(BOOST_NO_STDC_NAMESPACE)
namespace std{
@@ -31,6 +29,7 @@
}
#endif
+#include <boost/limits.hpp>
#include <boost/archive/archive_exception.hpp>
#include "test_tools.hpp"
Modified: trunk/libs/serialization/test/test_non_intrusive.cpp
==============================================================================
--- trunk/libs/serialization/test/test_non_intrusive.cpp (original)
+++ trunk/libs/serialization/test/test_non_intrusive.cpp 2012-02-07 15:53:56 EST (Tue, 07 Feb 2012)
@@ -16,8 +16,6 @@
#include <cstdlib> // for rand()
#include <cstdio> // remove
#include <cmath> // for fabs()
-#include <limits>
-
#include <boost/config.hpp>
#if defined(BOOST_NO_STDC_NAMESPACE)
namespace std{
@@ -30,6 +28,8 @@
}
#endif
+#include <boost/limits.hpp>
+
#include <boost/archive/archive_exception.hpp>
#include "test_tools.hpp"
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk