From e34716babd2b951039865c8cdfae54317a7c9336 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sun, 22 Jul 2001 05:27:20 +0000 Subject: [PATCH] function_n_test.cpp: function_test.cpp: - Updated testcases to reflect semantic change in const calling policy_test.cpp: - precall/postcall in policy should take pointers to const function_base [SVN r10686] --- test/function_n_test.cpp | 2 +- test/function_test.cpp | 2 +- test/policy_test.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/function_n_test.cpp b/test/function_n_test.cpp index 66fb42f..93b13d3 100644 --- a/test/function_n_test.cpp +++ b/test/function_n_test.cpp @@ -476,7 +476,7 @@ test_zero_args() global_int = 0; v7(); - BOOST_TEST(global_int == 1); + BOOST_TEST(global_int == 2); global_int = 0; v8(); diff --git a/test/function_test.cpp b/test/function_test.cpp index ef9dbdc..e7da119 100644 --- a/test/function_test.cpp +++ b/test/function_test.cpp @@ -476,7 +476,7 @@ test_zero_args() global_int = 0; v7(); - BOOST_TEST(global_int == 1); + BOOST_TEST(global_int == 2); global_int = 0; v8(); diff --git a/test/policy_test.cpp b/test/policy_test.cpp index 85ce7d8..cee8f93 100644 --- a/test/policy_test.cpp +++ b/test/policy_test.cpp @@ -27,8 +27,8 @@ struct counting_policy { static int count; - void precall(function_base*) { count++; } - void postcall(function_base*) { count+=2; } + void precall(const function_base*) { count++; } + void postcall(const function_base*) { count+=2; } }; int counting_policy::count = 0;