Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-05-26 09:02:19


Author: danieljames
Date: 2008-05-26 09:02:19 EDT (Mon, 26 May 2008)
New Revision: 45769
URL: http://svn.boost.org/trac/boost/changeset/45769

Log:
Get a some output from the move tests, they are passing on compilers where they should fail (because rvalue references aren't supported).
Text files modified:
   trunk/libs/unordered/test/helpers/test.hpp | 13 +++++++++++--
   trunk/libs/unordered/test/unordered/Jamfile.v2 | 2 +-
   2 files changed, 12 insertions(+), 3 deletions(-)

Modified: trunk/libs/unordered/test/helpers/test.hpp
==============================================================================
--- trunk/libs/unordered/test/helpers/test.hpp (original)
+++ trunk/libs/unordered/test/helpers/test.hpp 2008-05-26 09:02:19 EDT (Mon, 26 May 2008)
@@ -16,10 +16,13 @@
 
 #include <boost/test/minimal.hpp>
 #include <boost/preprocessor/cat.hpp>
+#include <iostream>
 
 #define UNORDERED_AUTO_TEST(x) \
     struct BOOST_PP_CAT(x, _type) : public ::test::registered_test_base { \
- BOOST_PP_CAT(x, _type)() { \
+ BOOST_PP_CAT(x, _type)() \
+ : ::test::registered_test_base(BOOST_PP_STRINGIZE(x)) \
+ { \
             ::test::test_list::add_test(this); \
         } \
         void run(); \
@@ -31,6 +34,8 @@
 namespace test {
     struct registered_test_base {
         registered_test_base* next;
+ char const* name;
+ explicit registered_test_base(char const* n) : name(n) {}
         virtual void run() = 0;
         virtual ~registered_test_base() {}
     };
@@ -58,8 +63,12 @@
         }
 
         static inline void run_tests() {
- for(registered_test_base* i = first(); i; i = i->next)
+ for(registered_test_base* i = first(); i; i = i->next) {
+ std::cout<<"Running "<<i->name<<"\n"<<std::flush;
                 i->run();
+ std::cerr<<std::flush;
+ std::cout<<std::flush;
+ }
         }
     }
 }

Modified: trunk/libs/unordered/test/unordered/Jamfile.v2
==============================================================================
--- trunk/libs/unordered/test/unordered/Jamfile.v2 (original)
+++ trunk/libs/unordered/test/unordered/Jamfile.v2 2008-05-26 09:02:19 EDT (Mon, 26 May 2008)
@@ -21,7 +21,7 @@
         [ run equivalent_keys_tests.cpp ]
         [ run constructor_tests.cpp ]
         [ run copy_tests.cpp ]
- [ run move_tests.cpp ]
+ [ run move_tests.cpp : : : <test-info>always_show_run_output ]
         [ run assign_tests.cpp ]
         [ run insert_tests.cpp ]
         [ run insert_stable_tests.cpp ]


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