|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62017 - in trunk/libs/test/example: . cla cla/validation env env/validation
From: gennadiy.rozental_at_[hidden]
Date: 2010-05-15 23:58:29
Author: rogeeff
Date: 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
New Revision: 62017
URL: http://svn.boost.org/trac/boost/changeset/62017
Log:
examples update
Text files modified:
trunk/libs/test/example/Jamfile.v2 | 2
trunk/libs/test/example/cla/assign_to.cpp | 2
trunk/libs/test/example/cla/basic_float.cpp | 2
trunk/libs/test/example/cla/basic_int.cpp | 2
trunk/libs/test/example/cla/basic_list.cpp | 2
trunk/libs/test/example/cla/basic_string.cpp | 2
trunk/libs/test/example/cla/basic_udt.cpp | 2
trunk/libs/test/example/cla/char_parameter.cpp | 2
trunk/libs/test/example/cla/custom_handler.cpp | 2
trunk/libs/test/example/cla/custom_interpreter.cpp | 2
trunk/libs/test/example/cla/custom_parameter.cpp | 2
trunk/libs/test/example/cla/default_value.cpp | 2
trunk/libs/test/example/cla/dual_name.cpp | 2
trunk/libs/test/example/cla/global.cpp | 2
trunk/libs/test/example/cla/guess_name.cpp | 2
trunk/libs/test/example/cla/help.cpp | 2
trunk/libs/test/example/cla/ignore_mismatch.cpp | 2
trunk/libs/test/example/cla/input_separator.cpp | 2
trunk/libs/test/example/cla/multiplicable.cpp | 2
trunk/libs/test/example/cla/name.cpp | 2
trunk/libs/test/example/cla/optional.cpp | 2
trunk/libs/test/example/cla/optional_value.cpp | 2
trunk/libs/test/example/cla/positional.cpp | 2
trunk/libs/test/example/cla/prefix.cpp | 2
trunk/libs/test/example/cla/reference.cpp | 2
trunk/libs/test/example/cla/remainder.cpp | 2
trunk/libs/test/example/cla/separator.cpp | 2
trunk/libs/test/example/cla/usage.cpp | 2
trunk/libs/test/example/cla/validation/access_unknown.cpp | 2
trunk/libs/test/example/cla/validation/ambiguous_access.cpp | 2
trunk/libs/test/example/cla/validation/ambiguous_input.cpp | 2
trunk/libs/test/example/cla/validation/definition_conflict.cpp | 2
trunk/libs/test/example/cla/validation/invalid_short_name.cpp | 2
trunk/libs/test/example/cla/validation/multiple_generators.cpp | 2
trunk/libs/test/example/cla/validation/multiple_value_handlers.cpp | 2
trunk/libs/test/example/cla/validation/opt_with_default_value.cpp | 2
trunk/libs/test/example/cla/validation/optional_plus_multiplicable.cpp | 2
trunk/libs/test/example/cla/validation/required_missing.cpp | 2
trunk/libs/test/example/cla/validation/unexpected_input.cpp | 2
trunk/libs/test/example/cla/validation/unexpected_repetition.cpp | 2
trunk/libs/test/example/cla/wide_string.cpp | 2
trunk/libs/test/example/const_string.hpp | 2
trunk/libs/test/example/env/custom_interpreter_env.cpp | 2
trunk/libs/test/example/env/env_var_default_value.cpp | 2
trunk/libs/test/example/env/environment_ex.cpp | 2
trunk/libs/test/example/env/global_id.cpp | 2
trunk/libs/test/example/env/modifier_combination.cpp | 2
trunk/libs/test/example/env/validation/need_typed_access.cpp | 2
trunk/libs/test/example/env/variable_ex.cpp | 2
trunk/libs/test/example/est_example1.cpp | 2
trunk/libs/test/example/est_example2.cpp | 2
trunk/libs/test/example/exec_mon_example.cpp | 134 +++++++++++++++++++++++++++++++++++++++
trunk/libs/test/example/logged_exp_example.cpp | 2
trunk/libs/test/example/named_param_example.cpp | 2
trunk/libs/test/example/prg_exec_example.cpp | 2
trunk/libs/test/example/unit_test_example_02.cpp | 2
trunk/libs/test/example/unit_test_example_03.cpp | 2
trunk/libs/test/example/unit_test_example_04.cpp | 2
trunk/libs/test/example/unit_test_example_05.cpp | 2
trunk/libs/test/example/unit_test_example_06.cpp | 2
trunk/libs/test/example/unit_test_example_07.cpp | 2
trunk/libs/test/example/unit_test_example_08.cpp | 2
trunk/libs/test/example/unit_test_example_09_1.cpp | 2
trunk/libs/test/example/unit_test_example_09_2.cpp | 2
trunk/libs/test/example/unit_test_example_10.cpp | 2
trunk/libs/test/example/unit_test_example_11.cpp | 7 +
trunk/libs/test/example/unit_test_example_12.cpp | 2
67 files changed, 202 insertions(+), 69 deletions(-)
Modified: trunk/libs/test/example/Jamfile.v2
==============================================================================
--- trunk/libs/test/example/Jamfile.v2 (original)
+++ trunk/libs/test/example/Jamfile.v2 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -51,7 +51,7 @@
[ run-fail unit_test_example_11.cpp unit_test_framework/<link>static ]
[ link unit_test_example_12.cpp unit_test_framework/<link>static ]
[ run unit_test_example_13.cpp ]
- [ run unit_test_example_14.cpp unit_test_framework/<link>static ]
+ [ run unit_test_example_14.cpp unit_test_framework ]
[ run est_example1.cpp unit_test_framework ]
[ run-fail est_example2.cpp unit_test_framework ]
Modified: trunk/libs/test/example/cla/assign_to.cpp
==============================================================================
--- trunk/libs/test/example/cla/assign_to.cpp (original)
+++ trunk/libs/test/example/cla/assign_to.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/basic_float.cpp
==============================================================================
--- trunk/libs/test/example/cla/basic_float.cpp (original)
+++ trunk/libs/test/example/cla/basic_float.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/basic_int.cpp
==============================================================================
--- trunk/libs/test/example/cla/basic_int.cpp (original)
+++ trunk/libs/test/example/cla/basic_int.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/basic_list.cpp
==============================================================================
--- trunk/libs/test/example/cla/basic_list.cpp (original)
+++ trunk/libs/test/example/cla/basic_list.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/basic_string.cpp
==============================================================================
--- trunk/libs/test/example/cla/basic_string.cpp (original)
+++ trunk/libs/test/example/cla/basic_string.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/basic_udt.cpp
==============================================================================
--- trunk/libs/test/example/cla/basic_udt.cpp (original)
+++ trunk/libs/test/example/cla/basic_udt.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/char_parameter.cpp
==============================================================================
--- trunk/libs/test/example/cla/char_parameter.cpp (original)
+++ trunk/libs/test/example/cla/char_parameter.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/custom_handler.cpp
==============================================================================
--- trunk/libs/test/example/cla/custom_handler.cpp (original)
+++ trunk/libs/test/example/cla/custom_handler.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/custom_interpreter.cpp
==============================================================================
--- trunk/libs/test/example/cla/custom_interpreter.cpp (original)
+++ trunk/libs/test/example/cla/custom_interpreter.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/custom_parameter.cpp
==============================================================================
--- trunk/libs/test/example/cla/custom_parameter.cpp (original)
+++ trunk/libs/test/example/cla/custom_parameter.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/default_value.cpp
==============================================================================
--- trunk/libs/test/example/cla/default_value.cpp (original)
+++ trunk/libs/test/example/cla/default_value.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/dual_name.cpp
==============================================================================
--- trunk/libs/test/example/cla/dual_name.cpp (original)
+++ trunk/libs/test/example/cla/dual_name.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/global.cpp
==============================================================================
--- trunk/libs/test/example/cla/global.cpp (original)
+++ trunk/libs/test/example/cla/global.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/guess_name.cpp
==============================================================================
--- trunk/libs/test/example/cla/guess_name.cpp (original)
+++ trunk/libs/test/example/cla/guess_name.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/help.cpp
==============================================================================
--- trunk/libs/test/example/cla/help.cpp (original)
+++ trunk/libs/test/example/cla/help.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/ignore_mismatch.cpp
==============================================================================
--- trunk/libs/test/example/cla/ignore_mismatch.cpp (original)
+++ trunk/libs/test/example/cla/ignore_mismatch.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/input_separator.cpp
==============================================================================
--- trunk/libs/test/example/cla/input_separator.cpp (original)
+++ trunk/libs/test/example/cla/input_separator.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/multiplicable.cpp
==============================================================================
--- trunk/libs/test/example/cla/multiplicable.cpp (original)
+++ trunk/libs/test/example/cla/multiplicable.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/name.cpp
==============================================================================
--- trunk/libs/test/example/cla/name.cpp (original)
+++ trunk/libs/test/example/cla/name.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/optional.cpp
==============================================================================
--- trunk/libs/test/example/cla/optional.cpp (original)
+++ trunk/libs/test/example/cla/optional.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/optional_value.cpp
==============================================================================
--- trunk/libs/test/example/cla/optional_value.cpp (original)
+++ trunk/libs/test/example/cla/optional_value.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/positional.cpp
==============================================================================
--- trunk/libs/test/example/cla/positional.cpp (original)
+++ trunk/libs/test/example/cla/positional.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/prefix.cpp
==============================================================================
--- trunk/libs/test/example/cla/prefix.cpp (original)
+++ trunk/libs/test/example/cla/prefix.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/reference.cpp
==============================================================================
--- trunk/libs/test/example/cla/reference.cpp (original)
+++ trunk/libs/test/example/cla/reference.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/remainder.cpp
==============================================================================
--- trunk/libs/test/example/cla/remainder.cpp (original)
+++ trunk/libs/test/example/cla/remainder.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/separator.cpp
==============================================================================
--- trunk/libs/test/example/cla/separator.cpp (original)
+++ trunk/libs/test/example/cla/separator.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/usage.cpp
==============================================================================
--- trunk/libs/test/example/cla/usage.cpp (original)
+++ trunk/libs/test/example/cla/usage.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/access_unknown.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/access_unknown.cpp (original)
+++ trunk/libs/test/example/cla/validation/access_unknown.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/ambiguous_access.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/ambiguous_access.cpp (original)
+++ trunk/libs/test/example/cla/validation/ambiguous_access.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/ambiguous_input.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/ambiguous_input.cpp (original)
+++ trunk/libs/test/example/cla/validation/ambiguous_input.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/definition_conflict.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/definition_conflict.cpp (original)
+++ trunk/libs/test/example/cla/validation/definition_conflict.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/invalid_short_name.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/invalid_short_name.cpp (original)
+++ trunk/libs/test/example/cla/validation/invalid_short_name.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/multiple_generators.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/multiple_generators.cpp (original)
+++ trunk/libs/test/example/cla/validation/multiple_generators.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/multiple_value_handlers.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/multiple_value_handlers.cpp (original)
+++ trunk/libs/test/example/cla/validation/multiple_value_handlers.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/opt_with_default_value.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/opt_with_default_value.cpp (original)
+++ trunk/libs/test/example/cla/validation/opt_with_default_value.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/optional_plus_multiplicable.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/optional_plus_multiplicable.cpp (original)
+++ trunk/libs/test/example/cla/validation/optional_plus_multiplicable.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/required_missing.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/required_missing.cpp (original)
+++ trunk/libs/test/example/cla/validation/required_missing.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/unexpected_input.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/unexpected_input.cpp (original)
+++ trunk/libs/test/example/cla/validation/unexpected_input.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/validation/unexpected_repetition.cpp
==============================================================================
--- trunk/libs/test/example/cla/validation/unexpected_repetition.cpp (original)
+++ trunk/libs/test/example/cla/validation/unexpected_repetition.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/cla/wide_string.cpp
==============================================================================
--- trunk/libs/test/example/cla/wide_string.cpp (original)
+++ trunk/libs/test/example/cla/wide_string.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/const_string.hpp
==============================================================================
--- trunk/libs/test/example/const_string.hpp (original)
+++ trunk/libs/test/example/const_string.hpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/env/custom_interpreter_env.cpp
==============================================================================
--- trunk/libs/test/example/env/custom_interpreter_env.cpp (original)
+++ trunk/libs/test/example/env/custom_interpreter_env.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/env/env_var_default_value.cpp
==============================================================================
--- trunk/libs/test/example/env/env_var_default_value.cpp (original)
+++ trunk/libs/test/example/env/env_var_default_value.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/env/environment_ex.cpp
==============================================================================
--- trunk/libs/test/example/env/environment_ex.cpp (original)
+++ trunk/libs/test/example/env/environment_ex.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/env/global_id.cpp
==============================================================================
--- trunk/libs/test/example/env/global_id.cpp (original)
+++ trunk/libs/test/example/env/global_id.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/env/modifier_combination.cpp
==============================================================================
--- trunk/libs/test/example/env/modifier_combination.cpp (original)
+++ trunk/libs/test/example/env/modifier_combination.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/env/validation/need_typed_access.cpp
==============================================================================
--- trunk/libs/test/example/env/validation/need_typed_access.cpp (original)
+++ trunk/libs/test/example/env/validation/need_typed_access.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/env/variable_ex.cpp
==============================================================================
--- trunk/libs/test/example/env/variable_ex.cpp (original)
+++ trunk/libs/test/example/env/variable_ex.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/est_example1.cpp
==============================================================================
--- trunk/libs/test/example/est_example1.cpp (original)
+++ trunk/libs/test/example/est_example1.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/est_example2.cpp
==============================================================================
--- trunk/libs/test/example/est_example2.cpp (original)
+++ trunk/libs/test/example/est_example2.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/exec_mon_example.cpp
==============================================================================
--- trunk/libs/test/example/exec_mon_example.cpp (original)
+++ trunk/libs/test/example/exec_mon_example.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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)
@@ -59,6 +59,48 @@
std::cout << "Caught my_exception2(" << ex.m_res_code << ")"<< std::endl;
}
+int generate_fpe()
+{
+ double d = 0.0;
+
+ d = 1/d;
+
+ return 0;
+}
+
+int generate_fpe2()
+{
+ double d = 1e158;
+
+ d = d*d;
+
+ return 0;
+}
+
+int generate_fpe3()
+{
+ double d = 1.1e-308;
+
+ d = 1/d;
+
+ return 0;
+}
+
+int generate_int_div_0()
+{
+ int i = 0;
+
+ return 1/i;
+}
+
+int generate_sigfault()
+{
+ int* p = 0;
+
+ return *p;
+}
+
+
} // local_namespace
int
@@ -66,11 +108,97 @@
{
::boost::execution_monitor ex_mon;
- ex_mon.register_exception_translator<my_exception1>( &translate_my_exception1 );
- ex_mon.register_exception_translator<my_exception2>( &translate_my_exception2 );
+ ///////////////////////////////////////////////////////////////
+
+ ex_mon.register_exception_translator<my_exception1>( &translate_my_exception1, "except1" );
+ ex_mon.register_exception_translator<my_exception2>( &translate_my_exception2, "except2" );
try {
ex_mon.execute( ::boost::unit_test::callback0<int>( dangerous_call( argc ) ) );
+ std::cout << "Should reach this line " << __LINE__ << std::endl;
+ }
+ catch ( boost::execution_exception const& ex ) {
+ std::cout << "Caught exception: " << ex.what() << std::endl;
+ }
+
+ ///////////////////////////////////////////////////////////////
+
+ ex_mon.erase_exception_translator( "except2" );
+
+ try {
+ ex_mon.execute( ::boost::unit_test::callback0<int>( dangerous_call( 5 ) ) );
+ std::cout << "Should not reach this line " << __LINE__ << std::endl;
+ }
+ catch ( boost::execution_exception const& ex ) {
+ std::cout << "Caught exception: " << ex.what() << std::endl;
+ }
+
+ ///////////////////////////////////////////////////////////////
+
+ ex_mon.erase_exception_translator<my_exception1>();
+
+ try {
+ ex_mon.execute( ::boost::unit_test::callback0<int>( dangerous_call( 1 ) ) );
+ std::cout << "Should not reach this line " << __LINE__ << std::endl;
+ }
+ catch ( boost::execution_exception const& ex ) {
+ std::cout << "Caught exception: " << ex.what() << std::endl;
+ }
+
+ ///////////////////////////////////////////////////////////////
+
+ ex_mon.p_detect_fp_exceptions.value = boost::fpe::BOOST_FPE_DIVBYZERO;
+ ex_mon.p_catch_system_errors.value = false;
+
+ try {
+ ex_mon.execute( &generate_fpe );
+ std::cout << "Should not reach this line " << __LINE__ << std::endl;
+ }
+ catch ( boost::execution_exception const& ex ) {
+ std::cout << "Caught exception: " << ex.what() << std::endl;
+ }
+
+ ///////////////////////////////////////////////////////////////
+
+ ex_mon.p_detect_fp_exceptions.value = boost::fpe::BOOST_FPE_ALL;
+
+ try {
+ ex_mon.execute( &generate_fpe2 );
+ std::cout << "Should not reach this line " << __LINE__ << std::endl;
+ }
+ catch ( boost::execution_exception const& ex ) {
+ std::cout << "Caught exception: " << ex.what() << std::endl;
+ }
+
+ try {
+ ex_mon.execute( &generate_fpe3 );
+ std::cout << "Should not reach this line " << __LINE__ << std::endl;
+ }
+ catch ( boost::execution_exception const& ex ) {
+ std::cout << "Caught exception: " << ex.what() << std::endl;
+ }
+
+ ///////////////////////////////////////////////////////////////
+
+ ex_mon.p_detect_fp_exceptions.value = boost::fpe::BOOST_FPE_OFF;
+ ex_mon.p_catch_system_errors.value = true;
+
+ try {
+ ex_mon.execute( &generate_int_div_0 );
+ std::cout << "Should not reach this line " << __LINE__ << std::endl;
+ }
+ catch ( boost::execution_exception const& ex ) {
+ std::cout << "Caught exception: " << ex.what() << std::endl;
+ }
+
+ ///////////////////////////////////////////////////////////////
+
+ ex_mon.p_detect_fp_exceptions.value = boost::fpe::BOOST_FPE_OFF;
+ ex_mon.p_catch_system_errors.value = true;
+
+ try {
+ ex_mon.execute( &generate_sigfault );
+ std::cout << "Should not reach this line " << __LINE__ << std::endl;
}
catch ( boost::execution_exception const& ex ) {
std::cout << "Caught exception: " << ex.what() << std::endl;
Modified: trunk/libs/test/example/logged_exp_example.cpp
==============================================================================
--- trunk/libs/test/example/logged_exp_example.cpp (original)
+++ trunk/libs/test/example/logged_exp_example.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/named_param_example.cpp
==============================================================================
--- trunk/libs/test/example/named_param_example.cpp (original)
+++ trunk/libs/test/example/named_param_example.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/prg_exec_example.cpp
==============================================================================
--- trunk/libs/test/example/prg_exec_example.cpp (original)
+++ trunk/libs/test/example/prg_exec_example.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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/example/unit_test_example_02.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_02.cpp (original)
+++ trunk/libs/test/example/unit_test_example_02.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2002-2008.
+// (C) Copyright Gennadiy Rozental 2002-2010.
// (C) Copyright Gennadiy Rozental & Ullrich Koethe 2001.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
Modified: trunk/libs/test/example/unit_test_example_03.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_03.cpp (original)
+++ trunk/libs/test/example/unit_test_example_03.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2002-2008.
+// (C) Copyright Gennadiy Rozental 2002-2010.
// (C) Copyright Gennadiy Rozental & Ullrich Koethe 2001.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
Modified: trunk/libs/test/example/unit_test_example_04.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_04.cpp (original)
+++ trunk/libs/test/example/unit_test_example_04.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/unit_test_example_05.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_05.cpp (original)
+++ trunk/libs/test/example/unit_test_example_05.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/unit_test_example_06.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_06.cpp (original)
+++ trunk/libs/test/example/unit_test_example_06.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/unit_test_example_07.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_07.cpp (original)
+++ trunk/libs/test/example/unit_test_example_07.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/unit_test_example_08.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_08.cpp (original)
+++ trunk/libs/test/example/unit_test_example_08.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/unit_test_example_09_1.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_09_1.cpp (original)
+++ trunk/libs/test/example/unit_test_example_09_1.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/unit_test_example_09_2.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_09_2.cpp (original)
+++ trunk/libs/test/example/unit_test_example_09_2.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2005-2008.
+// (C) Copyright Gennadiy Rozental 2005-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/example/unit_test_example_10.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_10.cpp (original)
+++ trunk/libs/test/example/unit_test_example_10.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2008.
+// (C) Copyright Gennadiy Rozental 2001-2010.
// (C) Copyright Gennadiy Rozental & Ullrich Koethe 2001.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
Modified: trunk/libs/test/example/unit_test_example_11.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_11.cpp (original)
+++ trunk/libs/test/example/unit_test_example_11.cpp 2010-05-15 23:58:23 EDT (Sat, 15 May 2010)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2002-2008.
+// (C) Copyright Gennadiy Rozental 2002-2010.
// (C) Copyright Gennadiy Rozental & Ullrich Koethe 2001.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
@@ -15,6 +15,9 @@
#include <vector>
#include <string>
+#define LOG_FATAL_ERROR( M ) \
+BOOST_TEST_LOG_ENTRY( ::boost::unit_test::log_fatal_errors ) \
+ << (::boost::unit_test::lazy_ostream::instance() << M)
//____________________________________________________________________________//
// this free function is invoked with all parameters specified in a list
@@ -30,6 +33,8 @@
init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) {
framework::master_test_suite().p_name.value = "Unit test example 11";
+ LOG_FATAL_ERROR( "something happend" );
+
// parameters have no requirements to stay alive beyond the next statement
std::string const params[] = { "hdr1 ", "hdr2", "3 " };
Modified: trunk/libs/test/example/unit_test_example_12.cpp
==============================================================================
--- trunk/libs/test/example/unit_test_example_12.cpp (original)
+++ trunk/libs/test/example/unit_test_example_12.cpp 2010-05-15 23:58:23 EDT (Sat, 15 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