Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / array / test / array_getfail1.cpp
index 21ae62f..d89b1ff 100644 (file)
@@ -16,8 +16,7 @@
 #include <array>
 #endif
 
-#define BOOST_TEST_MAIN
-#include <boost/test/unit_test.hpp>
+#include <boost/core/lightweight_test_trait.hpp>
 
 namespace {
 
@@ -30,13 +29,13 @@ namespace {
         test_type           test_case; //   =   { 1, 1, 2, 3, 5 };
     
         T &aRef = std::get<5> ( test_case );    // should fail to compile
-        BOOST_CHECK ( &*test_case.begin () == &aRef );
+        BOOST_TEST ( &*test_case.begin () == &aRef );
     }
     #endif
 
 }
 
-BOOST_AUTO_TEST_CASE( test_main )
+int main()
 {
 #ifndef BOOST_NO_CXX11_HDR_ARRAY
     RunStdTests< bool >();
@@ -46,4 +45,6 @@ BOOST_AUTO_TEST_CASE( test_main )
 #else
     BOOST_STATIC_ASSERT ( false );  // fail on C++03 systems.
 #endif
+
+    return boost::report_errors();
 }