mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Stupid design choice in cppunit fixt -.-
This commit is contained in:
parent
4c10d4dd2f
commit
39a77a855e
@ -55,7 +55,7 @@ namespace Test
|
||||
Suite();
|
||||
virtual ~Suite();
|
||||
|
||||
void add(std::auto_ptr<Suite> suite);
|
||||
void add(Suite* suite);
|
||||
|
||||
bool run(Output& output, bool cont_after_fail = true);
|
||||
|
||||
|
||||
@ -117,9 +117,9 @@ namespace Test
|
||||
/// \param suite %Test suite to add.
|
||||
///
|
||||
void
|
||||
Suite::add(auto_ptr<Suite> suite)
|
||||
Suite::add(Suite* suite)
|
||||
{
|
||||
_suites.push_back(suite.release());
|
||||
_suites.push_back(suite);
|
||||
}
|
||||
|
||||
/// Registers a test function.
|
||||
|
||||
@ -46,10 +46,10 @@ int main() {
|
||||
std::ofstream outfile("test_output.txt");
|
||||
std::unique_ptr<Test::Output> output(new Test::TextOutput(Test::TextOutput::Verbose, outfile));
|
||||
Test::Suite tests;
|
||||
tests.add(std::auto_ptr<MemoryMappedFileTest>(new MemoryMappedFileTest()));
|
||||
tests.add(std::auto_ptr<IPCMutexTest>(new IPCMutexTest()));
|
||||
tests.add(std::auto_ptr<FixedMemoryHashTest>(new FixedMemoryHashTest()));
|
||||
tests.add(std::auto_ptr<FixedMemoryVariableHashTest>(new FixedMemoryVariableHashTest()));
|
||||
tests.add(new MemoryMappedFileTest());
|
||||
tests.add(new IPCMutexTest());
|
||||
tests.add(new FixedMemoryHashTest());
|
||||
tests.add(new FixedMemoryVariableHashTest());
|
||||
tests.run(*output, true);
|
||||
} catch(...) {
|
||||
return -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user