summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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"));