From faa8c03b69464f31fb419f7e4e4c4c1bd2e6907f Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 20 Jan 2015 18:32:09 +0100 Subject: Adapted FileLocator unit tests, searching in the "UNKNOWN" ResourceType search paths directly in ResoruceLocator instead of Registry --- src/plugins/filesystem/SpecialPaths.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/plugins/filesystem/SpecialPaths.cpp') 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(); + } } } -- cgit v1.2.3