mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
fix for bin/tests to compile with configfileupdate
This commit is contained in:
parent
a628dee2b7
commit
5cd052458a
@ -21,6 +21,9 @@
|
|||||||
|
|
||||||
#include "cppunit/cpptest.h"
|
#include "cppunit/cpptest.h"
|
||||||
#include "../common/ipc_mutex.h"
|
#include "../common/ipc_mutex.h"
|
||||||
|
#include "../common/eqemu_config.h"
|
||||||
|
|
||||||
|
extern const EQEmuConfig *Config;
|
||||||
|
|
||||||
class IPCMutexTest : public Test::Suite {
|
class IPCMutexTest : public Test::Suite {
|
||||||
typedef void(IPCMutexTest::*TestFunction)(void);
|
typedef void(IPCMutexTest::*TestFunction)(void);
|
||||||
|
|||||||
@ -29,8 +29,16 @@
|
|||||||
#include "string_util_test.h"
|
#include "string_util_test.h"
|
||||||
#include "data_verification_test.h"
|
#include "data_verification_test.h"
|
||||||
#include "skills_util_test.h"
|
#include "skills_util_test.h"
|
||||||
|
#include "../common/eqemu_config.h"
|
||||||
|
|
||||||
|
const EQEmuConfig *Config;
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
if(!EQEmuConfig::LoadConfig()) {
|
||||||
|
std::cout << "Problem loading configuration." << std::endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
Config = EQEmuConfig::get();
|
||||||
try {
|
try {
|
||||||
std::ofstream outfile("test_output.txt");
|
std::ofstream outfile("test_output.txt");
|
||||||
std::unique_ptr<Test::Output> output(new Test::TextOutput(Test::TextOutput::Verbose, outfile));
|
std::unique_ptr<Test::Output> output(new Test::TextOutput(Test::TextOutput::Verbose, outfile));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user