diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index d8b0010..92e0222 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -41,7 +41,7 @@ test-suite type_index : [ run type_index_test.cpp $(tlib) ] [ run type_index_test.cpp $(tlib) : : : off : type_index_test_no_rtti ] - [ run ctti_print_name.cpp $(tlib) : : : off ] + [ run ctti_print_name.cpp ] [ run testing_crossmodule.cpp test_lib_rtti $(tlib) ] [ run testing_crossmodule.cpp test_lib_nortti $(tlib) : : : off : testing_crossmodule_no_rtti ] [ run testing_crossmodule_anonymous.cpp test_lib_anonymous_rtti $(tlib) ] diff --git a/test/ctti_print_name.cpp b/test/ctti_print_name.cpp index 93e5c62..b72e918 100644 --- a/test/ctti_print_name.cpp +++ b/test/ctti_print_name.cpp @@ -5,9 +5,6 @@ // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#define BOOST_TEST_MODULE type_index_ctti_test_module -#include - #include // This cpp file: @@ -20,13 +17,20 @@ namespace user_defined_namespace { class user_defined_class {}; } -BOOST_AUTO_TEST_CASE(ctti_print_full_string_helper_test) +int main() { using namespace boost::typeindex; - std::cerr << "int: " << ctti_type_index::type_id() << '\n'; - std::cerr << "double: " << ctti_type_index::type_id() << '\n'; - std::cerr << "user_defined_namespace::user_defined_class: " << ctti_type_index::type_id() << '\n'; - BOOST_CHECK(true); + std::cout << "int: " + << ctti_type_index::type_id() << '\n'; + + std::cout << "double: " + << ctti_type_index::type_id() << '\n'; + + std::cout << "user_defined_namespace::user_defined_class: " + << ctti_type_index::type_id() << '\n'; + + + return 0; }