summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-07 02:21:59 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-07 04:10:10 +0300
commit229b55863347dc346f3ad816e38b84b456ee527c (patch)
tree8d0c0f549f853f1511395a18772d0fd6dcd9b642 /src/test
parent3acedd2fadd68550798a5eec0550a855dbc05d85 (diff)
downloadManaVerse-229b55863347dc346f3ad816e38b84b456ee527c.tar.gz
ManaVerse-229b55863347dc346f3ad816e38b84b456ee527c.tar.bz2
ManaVerse-229b55863347dc346f3ad816e38b84b456ee527c.tar.xz
ManaVerse-229b55863347dc346f3ad816e38b84b456ee527c.zip
Use absolute path for launching tests.
Diffstat (limited to 'src/test')
-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"));