summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-07 04:34:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-07 04:34:03 +0300
commit4d125dff59df1e10a24022973b0d725e6203cc99 (patch)
tree255163a63a3cf53262984ab8ed2414d83436e01d
parent29953567853d1288c2e4252d70a57a13aca5c9c5 (diff)
downloadplus-4d125dff59df1e10a24022973b0d725e6203cc99.tar.gz
plus-4d125dff59df1e10a24022973b0d725e6203cc99.tar.bz2
plus-4d125dff59df1e10a24022973b0d725e6203cc99.tar.xz
plus-4d125dff59df1e10a24022973b0d725e6203cc99.zip
Possible fix for tests from shortcut.
-rw-r--r--src/test/testmain.cpp3
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"));