Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48921 - trunk/libs/exception/test
From: emil_at_[hidden]
Date: 2008-09-22 18:47:03


Author: emildotchevski
Date: 2008-09-22 18:47:03 EDT (Mon, 22 Sep 2008)
New Revision: 48921
URL: http://svn.boost.org/trac/boost/changeset/48921

Log:
Tests workarounds for CodeGear 2009. Thanks Nicola for all the CodeGear workarounds.
Text files modified:
   trunk/libs/exception/test/cloning_test.cpp | 5 +++++
   trunk/libs/exception/test/diagnostic_information_test.cpp | 5 +++++
   trunk/libs/exception/test/errno_test.cpp | 5 +++++
   trunk/libs/exception/test/error_info_test.cpp | 11 +++++++++++
   trunk/libs/exception/test/unknown_exception_test.cpp | 5 +++++
   5 files changed, 31 insertions(+), 0 deletions(-)

Modified: trunk/libs/exception/test/cloning_test.cpp
==============================================================================
--- trunk/libs/exception/test/cloning_test.cpp (original)
+++ trunk/libs/exception/test/cloning_test.cpp 2008-09-22 18:47:03 EDT (Mon, 22 Sep 2008)
@@ -7,8 +7,13 @@
 #include <boost/exception/get_error_info.hpp>
 #include <boost/exception/info.hpp>
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/workaround.hpp>
 #include <string>
 
+#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
+struct my_tag {};
+#endif
+
 typedef boost::error_info<struct my_tag,int> my_info;
 
 template <class T>

Modified: trunk/libs/exception/test/diagnostic_information_test.cpp
==============================================================================
--- trunk/libs/exception/test/diagnostic_information_test.cpp (original)
+++ trunk/libs/exception/test/diagnostic_information_test.cpp 2008-09-22 18:47:03 EDT (Mon, 22 Sep 2008)
@@ -6,6 +6,11 @@
 #include <boost/exception/diagnostic_information.hpp>
 #include <boost/exception/info.hpp>
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/workaround.hpp>
+
+#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
+struct test_tag {};
+#endif
 
 typedef boost::error_info<struct test_tag,int> tag_int;
 

Modified: trunk/libs/exception/test/errno_test.cpp
==============================================================================
--- trunk/libs/exception/test/errno_test.cpp (original)
+++ trunk/libs/exception/test/errno_test.cpp 2008-09-22 18:47:03 EDT (Mon, 22 Sep 2008)
@@ -6,8 +6,13 @@
 #include <boost/exception/get_error_info.hpp>
 #include <boost/exception/info.hpp>
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/workaround.hpp>
 #include <errno.h>
 
+#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
+struct tag_errno {};
+#endif
+
 typedef boost::error_info<struct tag_errno,int> info_errno;
 
 class

Modified: trunk/libs/exception/test/error_info_test.cpp
==============================================================================
--- trunk/libs/exception/test/error_info_test.cpp (original)
+++ trunk/libs/exception/test/error_info_test.cpp 2008-09-22 18:47:03 EDT (Mon, 22 Sep 2008)
@@ -6,6 +6,7 @@
 #include <boost/exception/get_error_info.hpp>
 #include <boost/exception/info_tuple.hpp>
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/workaround.hpp>
 
 struct throws_on_copy;
 struct non_printable { };
@@ -34,6 +35,16 @@
         }
     };
 
+#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
+struct tag_test_1 {};
+struct tag_test_2 {};
+struct tag_test_3 {};
+struct tag_test_4 {};
+struct tag_test_5 {};
+struct tag_test_6 {};
+struct tag_user_data {};
+#endif
+
 typedef boost::error_info<struct tag_test_1,int> test_1;
 typedef boost::error_info<struct tag_test_2,unsigned int> test_2;
 typedef boost::error_info<struct tag_test_3,float> test_3;

Modified: trunk/libs/exception/test/unknown_exception_test.cpp
==============================================================================
--- trunk/libs/exception/test/unknown_exception_test.cpp (original)
+++ trunk/libs/exception/test/unknown_exception_test.cpp 2008-09-22 18:47:03 EDT (Mon, 22 Sep 2008)
@@ -7,6 +7,11 @@
 #include <boost/exception/get_error_info.hpp>
 #include <boost/exception/info.hpp>
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/workaround.hpp>
+
+#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
+struct tag_test {};
+#endif
 
 typedef boost::error_info<struct tag_test,int> test;
 


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