mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@466 860be788-9bd5-4423-9f1e-828f051e677b
39 lines
830 B
C++
39 lines
830 B
C++
// http://turtle.sourceforge.net
|
|
//
|
|
// Copyright Mathieu Champlon 2011
|
|
//
|
|
// 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)
|
|
|
|
#ifndef MOCK_CLEANUP_HPP_INCLUDED
|
|
#define MOCK_CLEANUP_HPP_INCLUDED
|
|
|
|
#include "config.hpp"
|
|
|
|
#ifdef MOCK_USE_BOOST_TEST
|
|
|
|
#include "root.hpp"
|
|
#include <boost/test/unit_test_suite.hpp>
|
|
|
|
namespace mock
|
|
{
|
|
namespace detail
|
|
{
|
|
struct cleanup
|
|
{
|
|
~cleanup()
|
|
{
|
|
// $$$$ MAT : because of a bug in Boost.Test
|
|
// this will crash if anything needs to be logged
|
|
//mock::verify();
|
|
mock::reset();
|
|
}
|
|
};
|
|
BOOST_GLOBAL_FIXTURE( cleanup );
|
|
}
|
|
} // mock
|
|
|
|
#endif
|
|
|
|
#endif // MOCK_CLEANUP_HPP_INCLUDED
|