|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74734 - trunk/libs/type_traits/test
From: gennadiy.rozental_at_[hidden]
Date: 2011-10-05 06:05:31
Author: rogeeff
Date: 2011-10-05 06:05:30 EDT (Wed, 05 Oct 2011)
New Revision: 74734
URL: http://svn.boost.org/trac/boost/changeset/74734
Log:
eliminated unit_test_framework and BOOST_MESSAGE
Text files modified:
trunk/libs/type_traits/test/aligned_storage_test.cpp | 6 +++---
trunk/libs/type_traits/test/aligned_storage_test_a2.cpp | 6 +++---
trunk/libs/type_traits/test/init.cpp | 6 +++---
trunk/libs/type_traits/test/test.hpp | 4 ++--
4 files changed, 11 insertions(+), 11 deletions(-)
Modified: trunk/libs/type_traits/test/aligned_storage_test.cpp
==============================================================================
--- trunk/libs/type_traits/test/aligned_storage_test.cpp (original)
+++ trunk/libs/type_traits/test/aligned_storage_test.cpp 2011-10-05 06:05:30 EDT (Wed, 05 Oct 2011)
@@ -39,7 +39,7 @@
must_be_pod<t1> pod1;
no_unused_warning(as1);
no_unused_warning(pod1);
- BOOST_MESSAGE(typeid(t1).name());
+ BOOST_TEST_MESSAGE(typeid(t1).name());
BOOST_CHECK(::tt::alignment_of<t1>::value == T::value);
BOOST_CHECK(sizeof(t1) == T::value);
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
@@ -50,7 +50,7 @@
must_be_pod<t2> pod2;
no_unused_warning(as2);
no_unused_warning(pod2);
- BOOST_MESSAGE(typeid(t2).name());
+ BOOST_TEST_MESSAGE(typeid(t2).name());
BOOST_CHECK(::tt::alignment_of<t2>::value == T::value);
BOOST_CHECK(sizeof(t2) == T::value*2);
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
@@ -64,7 +64,7 @@
must_be_pod<t3> pod3;
no_unused_warning(as3);
no_unused_warning(pod3);
- BOOST_MESSAGE(typeid(t3).name());
+ BOOST_TEST_MESSAGE(typeid(t3).name());
BOOST_CHECK(::tt::alignment_of<t3>::value == ::tt::alignment_of< ::boost::detail::max_align>::value);
BOOST_CHECK((sizeof(t3) % T::value) == 0);
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
Modified: trunk/libs/type_traits/test/aligned_storage_test_a2.cpp
==============================================================================
--- trunk/libs/type_traits/test/aligned_storage_test_a2.cpp (original)
+++ trunk/libs/type_traits/test/aligned_storage_test_a2.cpp 2011-10-05 06:05:30 EDT (Wed, 05 Oct 2011)
@@ -39,7 +39,7 @@
must_be_pod<t1> pod1;
no_unused_warning(as1);
no_unused_warning(pod1);
- BOOST_MESSAGE(typeid(t1).name());
+ BOOST_TEST_MESSAGE(typeid(t1).name());
BOOST_CHECK(::tt::alignment_of<t1>::value == T::value);
BOOST_CHECK(sizeof(t1) == T::value);
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
@@ -50,7 +50,7 @@
must_be_pod<t2> pod2;
no_unused_warning(as2);
no_unused_warning(pod2);
- BOOST_MESSAGE(typeid(t2).name());
+ BOOST_TEST_MESSAGE(typeid(t2).name());
BOOST_CHECK(::tt::alignment_of<t2>::value == T::value);
BOOST_CHECK(sizeof(t2) == T::value*2);
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
@@ -64,7 +64,7 @@
must_be_pod<t3> pod3;
no_unused_warning(as3);
no_unused_warning(pod3);
- BOOST_MESSAGE(typeid(t3).name());
+ BOOST_TEST_MESSAGE(typeid(t3).name());
BOOST_CHECK(::tt::alignment_of<t3>::value == ::tt::alignment_of< ::boost::detail::max_align>::value);
BOOST_CHECK((sizeof(t3) % T::value) == 0);
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
Modified: trunk/libs/type_traits/test/init.cpp
==============================================================================
--- trunk/libs/type_traits/test/init.cpp (original)
+++ trunk/libs/type_traits/test/init.cpp 2011-10-05 06:05:30 EDT (Wed, 05 Oct 2011)
@@ -6,15 +6,15 @@
#include "test.hpp"
-boost::unit_test_framework::test_suite* get_master_unit(const char* name)
+boost::unit_test::test_suite* get_master_unit(const char* name)
{
- static boost::unit_test_framework::test_suite* ptest_suite = 0;
+ static boost::unit_test::test_suite* ptest_suite = 0;
if(0 == ptest_suite)
ptest_suite = BOOST_TEST_SUITE( name ? name : "" );
return ptest_suite;
}
-boost::unit_test_framework::test_suite* init_unit_test_suite ( int , char* [] )
+boost::unit_test::test_suite* init_unit_test_suite ( int , char* [] )
{
return get_master_unit();
}
Modified: trunk/libs/type_traits/test/test.hpp
==============================================================================
--- trunk/libs/type_traits/test/test.hpp (original)
+++ trunk/libs/type_traits/test/test.hpp 2011-10-05 06:05:30 EDT (Wed, 05 Oct 2011)
@@ -67,7 +67,7 @@
// global unit, this is not safe, but until the unit test framework uses
// shared_ptr throughout this is about as good as it gets :-(
//
-boost::unit_test_framework::test_suite* get_master_unit(const char* name = 0);
+boost::unit_test::test_suite* get_master_unit(const char* name = 0);
//
// initialisation class:
@@ -113,7 +113,7 @@
}\
}while(0)
-#define BOOST_MESSAGE(message)\
+#define BOOST_TEST_MESSAGE(message)\
do{ std::cout << __FILE__ << ":" << __LINE__ << ": " << message << std::endl; }while(0)
#define BOOST_CHECK(pred)\
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