Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62023 - trunk/libs/test/test
From: gennadiy.rozental_at_[hidden]
Date: 2010-05-16 00:06:11


Author: rogeeff
Date: 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
New Revision: 62023
URL: http://svn.boost.org/trac/boost/changeset/62023

Log:
copyright update
Text files modified:
   trunk/libs/test/test/Jamfile.v2 | 2 +-
   trunk/libs/test/test/algorithms_test.cpp | 2 +-
   trunk/libs/test/test/basic_cstring_test.cpp | 2 +-
   trunk/libs/test/test/boost_check_equal_str.cpp | 2 +-
   trunk/libs/test/test/class_properties_test.cpp | 2 +-
   trunk/libs/test/test/config_file_iterator_test.cpp | 2 +-
   trunk/libs/test/test/config_file_test.cpp | 2 +-
   trunk/libs/test/test/custom_exception_test.cpp | 2 +-
   trunk/libs/test/test/errors_handling_test.cpp | 2 +-
   trunk/libs/test/test/fixed_mapping_test.cpp | 2 +-
   trunk/libs/test/test/foreach_test.cpp | 2 +-
   trunk/libs/test/test/ifstream_line_iterator_test.cpp | 2 +-
   trunk/libs/test/test/minimal_test.cpp | 2 +-
   trunk/libs/test/test/online_test.cpp | 2 +-
   trunk/libs/test/test/output_test_stream_test.cpp | 2 +-
   trunk/libs/test/test/parameterized_test_test.cpp | 2 +-
   trunk/libs/test/test/prg_exec_fail1.cpp | 2 +-
   trunk/libs/test/test/prg_exec_fail2.cpp | 2 +-
   trunk/libs/test/test/prg_exec_fail3.cpp | 2 +-
   trunk/libs/test/test/prg_exec_fail4.cpp | 2 +-
   trunk/libs/test/test/result_report_test.cpp | 2 +-
   trunk/libs/test/test/sync_access_test.cpp | 15 +++++++++++++++
   trunk/libs/test/test/test_case_template_test.cpp | 2 +-
   trunk/libs/test/test/test_fp_comparisons.cpp | 22 +++++++++++++---------
   trunk/libs/test/test/test_tools_test.cpp | 36 ++++++++++++++++++++++++++++++++++--
   trunk/libs/test/test/test_tree_management_test.cpp | 2 +-
   trunk/libs/test/test/token_iterator_test.cpp | 2 +-
   27 files changed, 86 insertions(+), 35 deletions(-)

Modified: trunk/libs/test/test/Jamfile.v2
==============================================================================
--- trunk/libs/test/test/Jamfile.v2 (original)
+++ trunk/libs/test/test/Jamfile.v2 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-# (C) Copyright Gennadiy Rozental 2001-2007.
+# (C) Copyright Gennadiy Rozental 2001-2010.
 # Use, modification, and distribution are subject to the
 # Boost Software License, Version 1.0. (See accompanying file
 # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/algorithms_test.cpp
==============================================================================
--- trunk/libs/test/test/algorithms_test.cpp (original)
+++ trunk/libs/test/test/algorithms_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2003-2008.
+// (C) Copyright Gennadiy Rozental 2003-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/basic_cstring_test.cpp
==============================================================================
--- trunk/libs/test/test/basic_cstring_test.cpp (original)
+++ trunk/libs/test/test/basic_cstring_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/boost_check_equal_str.cpp
==============================================================================
--- trunk/libs/test/test/boost_check_equal_str.cpp (original)
+++ trunk/libs/test/test/boost_check_equal_str.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/class_properties_test.cpp
==============================================================================
--- trunk/libs/test/test/class_properties_test.cpp (original)
+++ trunk/libs/test/test/class_properties_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2003-2008.
+// (C) Copyright Gennadiy Rozental 2003-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/config_file_iterator_test.cpp
==============================================================================
--- trunk/libs/test/test/config_file_iterator_test.cpp (original)
+++ trunk/libs/test/test/config_file_iterator_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/config_file_test.cpp
==============================================================================
--- trunk/libs/test/test/config_file_test.cpp (original)
+++ trunk/libs/test/test/config_file_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/custom_exception_test.cpp
==============================================================================
--- trunk/libs/test/test/custom_exception_test.cpp (original)
+++ trunk/libs/test/test/custom_exception_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2003-2008.
+// (C) Copyright Gennadiy Rozental 2003-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/errors_handling_test.cpp
==============================================================================
--- trunk/libs/test/test/errors_handling_test.cpp (original)
+++ trunk/libs/test/test/errors_handling_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // (C) Copyright Beman Dawes 2001.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at

Modified: trunk/libs/test/test/fixed_mapping_test.cpp
==============================================================================
--- trunk/libs/test/test/fixed_mapping_test.cpp (original)
+++ trunk/libs/test/test/fixed_mapping_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/foreach_test.cpp
==============================================================================
--- trunk/libs/test/test/foreach_test.cpp (original)
+++ trunk/libs/test/test/foreach_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/ifstream_line_iterator_test.cpp
==============================================================================
--- trunk/libs/test/test/ifstream_line_iterator_test.cpp (original)
+++ trunk/libs/test/test/ifstream_line_iterator_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/minimal_test.cpp
==============================================================================
--- trunk/libs/test/test/minimal_test.cpp (original)
+++ trunk/libs/test/test/minimal_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/online_test.cpp
==============================================================================
--- trunk/libs/test/test/online_test.cpp (original)
+++ trunk/libs/test/test/online_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/output_test_stream_test.cpp
==============================================================================
--- trunk/libs/test/test/output_test_stream_test.cpp (original)
+++ trunk/libs/test/test/output_test_stream_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/parameterized_test_test.cpp
==============================================================================
--- trunk/libs/test/test/parameterized_test_test.cpp (original)
+++ trunk/libs/test/test/parameterized_test_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2002-2008.
+// (C) Copyright Gennadiy Rozental 2002-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/prg_exec_fail1.cpp
==============================================================================
--- trunk/libs/test/test/prg_exec_fail1.cpp (original)
+++ trunk/libs/test/test/prg_exec_fail1.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // (C) Copyright Beman Dawes 2001.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at

Modified: trunk/libs/test/test/prg_exec_fail2.cpp
==============================================================================
--- trunk/libs/test/test/prg_exec_fail2.cpp (original)
+++ trunk/libs/test/test/prg_exec_fail2.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // (C) Copyright Beman Dawes 2001.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at

Modified: trunk/libs/test/test/prg_exec_fail3.cpp
==============================================================================
--- trunk/libs/test/test/prg_exec_fail3.cpp (original)
+++ trunk/libs/test/test/prg_exec_fail3.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2002-2008.
+// (C) Copyright Gennadiy Rozental 2002-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/prg_exec_fail4.cpp
==============================================================================
--- trunk/libs/test/test/prg_exec_fail4.cpp (original)
+++ trunk/libs/test/test/prg_exec_fail4.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2003-2008.
+// (C) Copyright Gennadiy Rozental 2003-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/result_report_test.cpp
==============================================================================
--- trunk/libs/test/test/result_report_test.cpp (original)
+++ trunk/libs/test/test/result_report_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/sync_access_test.cpp
==============================================================================
--- trunk/libs/test/test/sync_access_test.cpp (original)
+++ trunk/libs/test/test/sync_access_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,3 +1,18 @@
+// (C) Copyright Gennadiy Rozental 2008-2010.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/test for the library home page.
+//
+// File : $RCSfile$
+//
+// Version : $Revision$
+//
+// Description : tests Unit Test Framework usability in MT environment with
+// Boost.Test calls externally synchronized
+// ***************************************************************************
+
 #define BOOST_TEST_MODULE sync_access_test
 #include <boost/test/unit_test.hpp>
 

Modified: trunk/libs/test/test/test_case_template_test.cpp
==============================================================================
--- trunk/libs/test/test/test_case_template_test.cpp (original)
+++ trunk/libs/test/test/test_case_template_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2003-2008.
+// (C) Copyright Gennadiy Rozental 2003-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/test_fp_comparisons.cpp
==============================================================================
--- trunk/libs/test/test/test_fp_comparisons.cpp (original)
+++ trunk/libs/test/test/test_fp_comparisons.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
@@ -50,8 +50,9 @@
     fp2 = static_cast<FPT>(second); \
     epsilon = static_cast<FPT>(e); \
                                             \
- BOOST_CHECK_PREDICATE( bind(not_func, bind(check_is_close, _1, _2, _3)), \
- (fp1)(fp2)(percent_tolerance( epsilon )) ); \
+ BOOST_CHECK_PREDICATE( \
+ bind(not_func, bind(check_is_close, _1, _2, _3)), \
+ (fp1)(fp2)(fpc::percent_tolerance( epsilon )) ); \
 /**/
 
     FPT fp1, fp2, epsilon;
@@ -99,8 +100,9 @@
     fp2 = static_cast<FPT>(second); \
     epsilon = static_cast<FPT>(e); \
                                             \
- BOOST_CHECK_PREDICATE( bind(not_func, bind(check_is_close, _1, _2, _3)), \
- (fp1)(fp2)(fraction_tolerance( epsilon )) ); \
+ BOOST_CHECK_PREDICATE( \
+ bind(not_func, bind(check_is_close, _1, _2, _3)), \
+ (fp1)(fp2)(epsilon) ); \
 /**/
 
     FPT fp1, fp2, epsilon;
@@ -152,26 +154,28 @@
 
 //____________________________________________________________________________//
 
+namespace fpc = boost::math::fpc;
+
 BOOST_AUTO_TEST_CASE( test_close_at_tolerance )
 {
     double fp1 = 1.00000001;
     double fp2 = 1.00000002;
     double epsilon = 1e-6;
 
- close_at_tolerance<double> pred( percent_tolerance( epsilon ), FPC_WEAK );
+ fpc::close_at_tolerance<double> pred( fpc::percent_tolerance( epsilon ), fpc::FPC_WEAK );
     BOOST_CHECK_PREDICATE( pred, (fp1)(fp2) );
 
     BOOST_CHECK_PREDICATE( bind(not_func, bind(check_is_close, _1, _2, _3)),
- (fp1)(fp2)(percent_tolerance( epsilon )) );
+ (fp1)(fp2)(fpc::percent_tolerance( epsilon )) );
 
     fp1 = 1.23456e-10;
     fp2 = 1.23457e-10;
     epsilon = 8.1e-4;
 
- BOOST_CHECK_PREDICATE( close_at_tolerance<double>( percent_tolerance( epsilon ), FPC_WEAK ), (fp1)(fp2) );
+ BOOST_CHECK_PREDICATE( fpc::close_at_tolerance<double>( fpc::percent_tolerance( epsilon ), fpc::FPC_WEAK ), (fp1)(fp2) );
     BOOST_CHECK_PREDICATE(
         bind(not_func,
- bind(close_at_tolerance<double>( percent_tolerance( epsilon ) ), _1, _2)), (fp1)(fp2) );
+ bind(fpc::close_at_tolerance<double>( fpc::percent_tolerance( epsilon ) ), _1, _2)), (fp1)(fp2) );
 }
 
 //____________________________________________________________________________//

Modified: trunk/libs/test/test/test_tools_test.cpp
==============================================================================
--- trunk/libs/test/test/test_tools_test.cpp (original)
+++ trunk/libs/test/test/test_tools_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
@@ -548,7 +548,7 @@
 
 //____________________________________________________________________________//
 
-TEST_CASE( test_BOOST_IS_DEFINED )
+BOOST_AUTO_TEST_CASE( test_BOOST_IS_DEFINED )
 {
 #define SYMBOL1
 #define SYMBOL2 std::cout
@@ -566,6 +566,38 @@
 
 //____________________________________________________________________________//
 
+int goo()
+{
+ static int i = 0;
+ return i++;
+}
+
+struct Foo : boost::noncopyable {
+ static int copy_counter;
+
+ Foo() {}
+ Foo( Foo const& ) { copy_counter++; }
+};
+
+int Foo::copy_counter = 0;
+
+bool operator==( Foo const&, Foo const& ) { return true; }
+std::ostream& operator<<( std::ostream& os, Foo const& ) { return os << "Foo"; }
+
+BOOST_AUTO_TEST_CASE( test_argument_handling )
+{
+ BOOST_CHECK_EQUAL( goo(), 0 );
+ BOOST_CHECK_EQUAL( goo(), 1 );
+ BOOST_CHECK_EQUAL( 2, goo() );
+ BOOST_CHECK_EQUAL( 3, goo() );
+ BOOST_CHECK_NE( goo(), 5 );
+ BOOST_CHECK_EQUAL( Foo(), Foo() );
+ BOOST_CHECK_EQUAL( Foo::copy_counter, 0 );
+}
+
+//____________________________________________________________________________//
+
+
 // !! CHECK_SMALL
 
 // EOF

Modified: trunk/libs/test/test/test_tree_management_test.cpp
==============================================================================
--- trunk/libs/test/test/test_tree_management_test.cpp (original)
+++ trunk/libs/test/test/test_tree_management_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2007.
+// (C) Copyright Gennadiy Rozental 2007-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)

Modified: trunk/libs/test/test/token_iterator_test.cpp
==============================================================================
--- trunk/libs/test/test/token_iterator_test.cpp (original)
+++ trunk/libs/test/test/token_iterator_test.cpp 2010-05-16 00:06:08 EDT (Sun, 16 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)


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