First
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#include "stdafx.h"
|
||||
|
||||
// each test module could contain no more then one 'main' file with init function defined
|
||||
// alternatively you could define init function yourself
|
||||
#define BOOST_TEST_MAIN
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include "tl/string.h"
|
||||
|
||||
void* __cdecl operator new[](size_t size, const char* name, int flags, unsigned debugFlags, const char* file, int line)
|
||||
{
|
||||
return new uint8_t[size];
|
||||
}
|
||||
void* __cdecl operator new[](size_t size, size_t, size_t, const char* name, int flags, unsigned debugFlags, const char* file, int line)
|
||||
{
|
||||
return new uint8_t[size];
|
||||
}
|
||||
|
||||
//____________________________________________________________________________//
|
||||
|
||||
struct GlobalFixture
|
||||
{
|
||||
GlobalFixture()
|
||||
{
|
||||
std::cout << "Starting Tests\n";
|
||||
}
|
||||
~GlobalFixture()
|
||||
{
|
||||
std::cout << "Finishing Tests\n";
|
||||
tl::string::free_database();
|
||||
}
|
||||
};
|
||||
|
||||
BOOST_GLOBAL_FIXTURE(GlobalFixture);
|
||||
Reference in New Issue
Block a user