diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-07 04:34:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-07 04:34:03 +0300 |
commit | 4d125dff59df1e10a24022973b0d725e6203cc99 (patch) | |
tree | 255163a63a3cf53262984ab8ed2414d83436e01d /src/test/testmain.cpp | |
parent | 29953567853d1288c2e4252d70a57a13aca5c9c5 (diff) | |
download | manaplus-4d125dff59df1e10a24022973b0d725e6203cc99.tar.gz manaplus-4d125dff59df1e10a24022973b0d725e6203cc99.tar.bz2 manaplus-4d125dff59df1e10a24022973b0d725e6203cc99.tar.xz manaplus-4d125dff59df1e10a24022973b0d725e6203cc99.zip |
Possible fix for tests from shortcut.
Diffstat (limited to 'src/test/testmain.cpp')
-rw-r--r-- | src/test/testmain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp index 287eeb706..a35cd01db 100644 --- a/src/test/testmain.cpp +++ b/src/test/testmain.cpp @@ -46,6 +46,9 @@ TestMain::TestMain() fileName = selfName; #endif +#if defined __linux__ || defined __linux + chdir(getFileDir(fileName).c_str()); +#endif log = new Logger; // log->setLogFile(Client::getLocalDataDirectory() // + std::string("/test.log")); |