From 8dc4b99bff496457d07b2a17ed67864f68cbcb42 Mon Sep 17 00:00:00 2001 From: mat007 Date: Tue, 5 Jan 2010 16:39:23 +0000 Subject: [PATCH] Clean-up git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@90 860be788-9bd5-4423-9f1e-828f051e677b --- src/libraries/turtle/error.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libraries/turtle/error.hpp b/src/libraries/turtle/error.hpp index 2da4b1f..b2bcf82 100644 --- a/src/libraries/turtle/error.hpp +++ b/src/libraries/turtle/error.hpp @@ -25,7 +25,7 @@ namespace mock static Result missing_result_specification( const std::string& context, const std::string& file, int line ) { - notify( "mock error : missing result specification : " + context, + fail( "mock error : missing result specification : " + context, file, line ); throw boost::enable_current_exception( boost::execution_aborted() ); @@ -33,7 +33,7 @@ namespace mock static Result no_match( const std::string& context ) { - notify( "mock error : unexpected call : " + context, + fail( "mock error : unexpected call : " + context, "unknown location", 0 ); throw boost::enable_current_exception( boost::execution_aborted() ); @@ -42,7 +42,7 @@ namespace mock static void sequence_failed( const std::string& context, const std::string& /*file*/, int /*line*/ ) { - notify( "mock error : sequence failed : " + context, + fail( "mock error : sequence failed : " + context, "unknown location", 0 ); throw boost::enable_current_exception( boost::execution_aborted() ); @@ -51,16 +51,16 @@ namespace mock static void verification_failed( const std::string& context, const std::string& file, int line ) { - notify( "verification failed : " + context, file, line ); + fail( "verification failed : " + context, file, line ); } static void untriggered_expectation( const std::string& context, const std::string& file, int line ) { - notify( "untriggered expectation : " + context, file, line ); + fail( "untriggered expectation : " + context, file, line ); } - static void notify( const std::string& message, + static void fail( const std::string& message, const std::string& file, int line ) { boost::unit_test::unit_test_log