summaryrefslogtreecommitdiff
path: root/src/test/testmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testmain.cpp')
-rw-r--r--src/test/testmain.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp
index 712133d41..287eeb706 100644
--- a/src/test/testmain.cpp
+++ b/src/test/testmain.cpp
@@ -35,14 +35,17 @@
#include "debug.h"
+std::string fileName = "";
+extern char *selfName;
+
+TestMain::TestMain()
+{
#ifdef WIN32
- const std::string fileName = "manaplus.exe";
+ fileName = "manaplus.exe";
#else
- const std::string fileName = "manaplus";
+ fileName = selfName;
#endif
-TestMain::TestMain()
-{
log = new Logger;
// log->setLogFile(Client::getLocalDataDirectory()
// + std::string("/test.log"));