From 5d8cdcc710667134756560c6d992cc8167fd470e Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 26 May 2008 13:02:19 +0000 Subject: [PATCH] Get a some output from the move tests, they are passing on compilers where they should fail (because rvalue references aren't supported). [SVN r45769] --- test/helpers/test.hpp | 13 +++++++++++-- test/unordered/Jamfile.v2 | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/test/helpers/test.hpp b/test/helpers/test.hpp index f42f4ce3..beb5bfd9 100644 --- a/test/helpers/test.hpp +++ b/test/helpers/test.hpp @@ -16,10 +16,13 @@ #include #include +#include #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 @@ namespace test { } 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 "<name<<"\n"<run(); + std::cerr<always_show_run_output ] [ run assign_tests.cpp ] [ run insert_tests.cpp ] [ run insert_stable_tests.cpp ]