summaryrefslogtreecommitdiff
path: root/src/plugins/filesystem/SpecialPaths.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-20 18:32:09 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-20 18:32:09 +0100
commitfaa8c03b69464f31fb419f7e4e4c4c1bd2e6907f (patch)
tree94dd1b59a5c8c1bceb68dc545a72d0952d6f1502 /src/plugins/filesystem/SpecialPaths.cpp
parent8755bbe309d2f00c7bc73a6a6304ed8860a9a94d (diff)
Adapted FileLocator unit tests, searching in the "UNKNOWN" ResourceType search paths directly in ResoruceLocator instead of Registry
Diffstat (limited to 'src/plugins/filesystem/SpecialPaths.cpp')
-rw-r--r--src/plugins/filesystem/SpecialPaths.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/filesystem/SpecialPaths.cpp b/src/plugins/filesystem/SpecialPaths.cpp
index 97bdb9c..47ac0f0 100644
--- a/src/plugins/filesystem/SpecialPaths.cpp
+++ b/src/plugins/filesystem/SpecialPaths.cpp
@@ -59,8 +59,12 @@ std::string SpecialPaths::getDebugDataDir()
std::string SpecialPaths::getDebugTestdataDir()
{
- fs::path debug{OUSIA_DEBUG_DIR};
- return (debug / "testdata").generic_string();
+ std::string debug{OUSIA_DEBUG_DIR};
+ if (debug.empty()) {
+ return "./testdata";
+ } else {
+ return (fs::path{debug} / "testdata").generic_string();
+ }
}
}