Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50002 - sandbox/md5/libs/coding/test
From: dwalker07_at_[hidden]
Date: 2008-11-28 21:42:05


Author: dlwalker
Date: 2008-11-28 21:42:04 EST (Fri, 28 Nov 2008)
New Revision: 50002
URL: http://svn.boost.org/trac/boost/changeset/50002

Log:
Removed custom XCode logging format since it has been incorporated into the mainline Boost.Test code.
Text files modified:
   sandbox/md5/libs/coding/test/adler32_test.cpp | 39 +--------------------------------------
   sandbox/md5/libs/coding/test/md5_digest_test.cpp | 37 -------------------------------------
   2 files changed, 1 insertions(+), 75 deletions(-)

Modified: sandbox/md5/libs/coding/test/adler32_test.cpp
==============================================================================
--- sandbox/md5/libs/coding/test/adler32_test.cpp (original)
+++ sandbox/md5/libs/coding/test/adler32_test.cpp 2008-11-28 21:42:04 EST (Fri, 28 Nov 2008)
@@ -16,14 +16,12 @@
 #include <boost/cstdint.hpp> // for boost::uint_least32_t
 #include <boost/foreach.hpp> // for BOOST_FOREACH
 #include <boost/serialization/nvp.hpp> // for boost::serialization::make_nvp
-#include <boost/test/unit_test.hpp> // unit testing framework
-#include <boost/test/output/compiler_log_formatter.hpp> // for new formatter
+#include <boost/test/unit_test.hpp> // unit testing framework
 
 #include <algorithm> // for std::for_each
 #include <climits> // for UCHAR_MAX
 #include <cstddef> // for std::size_t
 #include <istream> // for std::basic_istream
-#include <memory> // for std::auto_ptr [for xcode_config]
 #include <ostream> // for std::basic_ostream
 #include <sstream> // for std::stringstream
 
@@ -38,41 +36,6 @@
 namespace
 {
 
-#ifdef __APPLE_CC__
-/* Xcode-compatible logging format, idea by Richard Dingwall at
- <http://richarddingwall.name/2008/06/01/using-the-boost-unit-test-framework-
- with-xcode-3/>.
-*/
-class xcode_log_formatter
- : public boost::unit_test::output::compiler_log_formatter
-{
-protected:
- virtual void print_prefix( std::ostream &o, boost::unit_test::const_string
- file, std::size_t line )
- {
- o << file << ':' << line << ": ";
- }
-
-}; // xcode_log_formatter
-
-class xcode_config
-{
-public:
- xcode_config()
- {
- std::auto_ptr<xcode_log_formatter> p( new xcode_log_formatter );
-
- boost::unit_test::unit_test_log.set_formatter( p.get() );
- p.release();
- }
-
- ~xcode_config() {}
-
-}; // xcode_config
-
-BOOST_GLOBAL_FIXTURE(xcode_config);
-#endif
-
 // Sample Adler-32 checksum values
 boost::uint_least32_t const adler32_empty_data = 1u;
 

Modified: sandbox/md5/libs/coding/test/md5_digest_test.cpp
==============================================================================
--- sandbox/md5/libs/coding/test/md5_digest_test.cpp (original)
+++ sandbox/md5/libs/coding/test/md5_digest_test.cpp 2008-11-28 21:42:04 EST (Fri, 28 Nov 2008)
@@ -16,7 +16,6 @@
 #include <boost/lexical_cast.hpp> // for boost::lexical_cast
 #include <boost/serialization/nvp.hpp> // for boost::serialization::make_nvp
 #include <boost/test/unit_test.hpp> // unit testing framework
-#include <boost/test/output/compiler_log_formatter.hpp> // for new formatter
 
 #include <cstddef> // for std::size_t
 #include <cstdio> // for EOF
@@ -24,7 +23,6 @@
 #include <iomanip> // for std::setfill, setw
 #include <ios> // for std::left, uppercase
 #include <istream> // for std::basic_istream
-#include <memory> // for std::auto_ptr [for xcode_config]
 #include <ostream> // for std::basic_ostream
 #include <sstream> // for std::[w](o|i)stringstream
 #include <string> // for std::string, wstring
@@ -40,41 +38,6 @@
 namespace
 {
 
-#ifdef __APPLE_CC__
-/* Xcode-compatible logging format, idea by Richard Dingwall at
- <http://richarddingwall.name/2008/06/01/using-the-boost-unit-test-framework-
- with-xcode-3/>.
-*/
-class xcode_log_formatter
- : public boost::unit_test::output::compiler_log_formatter
-{
-protected:
- virtual void print_prefix( std::ostream &o, boost::unit_test::const_string
- file, std::size_t line )
- {
- o << file << ':' << line << ": ";
- }
-
-}; // xcode_log_formatter
-
-class xcode_config
-{
-public:
- xcode_config()
- {
- std::auto_ptr<xcode_log_formatter> p( new xcode_log_formatter );
-
- boost::unit_test::unit_test_log.set_formatter( p.get() );
- p.release();
- }
-
- ~xcode_config() {}
-
-}; // xcode_config
-
-BOOST_GLOBAL_FIXTURE(xcode_config);
-#endif
-
 // Sample MD5 message digest values
 md5_digest const md5_initial = { {0x67452301ul, 0xEFCDAB89ul, 0x98BADCFEul,
  0x10325476ul} }; // from RFC 1321, section 3.3


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