mirror of
https://github.com/boostorg/detail.git
synced 2025-07-29 20:07:15 +02:00
System, Filesystem: remove boost/detail/test_framework.hpp; use boost/detail/lightweight_test.hpp instead (Thanks to Peter Dimov for pointing this out)
[SVN r51966]
This commit is contained in:
@ -1,37 +0,0 @@
|
||||
// test_framework.hpp ----------------------------------------------------------------//
|
||||
|
||||
// Copyright Beman Dawes 2009
|
||||
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
// A very simple test framework that avoids dependencies on Boost.Test
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace test_framework
|
||||
{
|
||||
int error_count = 0;
|
||||
|
||||
void check( const char * predicate, const char * file, int line )
|
||||
{
|
||||
++error_count;
|
||||
|
||||
// format chosen to parse with VC++ IDE output
|
||||
std::cout << file << "(" << line << ") : error: "
|
||||
<< predicate << " is false\n" << std::endl;
|
||||
}
|
||||
|
||||
int errors()
|
||||
{
|
||||
std::cout << " ***** " << error_count << " error(s) detected *****\n";
|
||||
return error_count;
|
||||
}
|
||||
} // namespace test_framework
|
||||
} // namespace boost
|
||||
|
||||
#define BOOST_CHECK(predicate) \
|
||||
(predicate) ? static_cast<void>(0) : \
|
||||
boost::test_framework::check( #predicate, __FILE__, __LINE__ )
|
Reference in New Issue
Block a user