diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-07 02:21:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-07 04:10:10 +0300 |
commit | 229b55863347dc346f3ad816e38b84b456ee527c (patch) | |
tree | 8d0c0f549f853f1511395a18772d0fd6dcd9b642 /src/test | |
parent | 3acedd2fadd68550798a5eec0550a855dbc05d85 (diff) | |
download | manaverse-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.cpp | 11 |
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")); |