From 29c0db0090825679306cb853eabceaed1ed3e61d Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 27 Feb 2016 01:18:54 +0100 Subject: [PATCH] mingw-w64: workingCopyPath is (currently) not supported --- tests/testutils.cpp | 2 ++ tests/testutils.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/tests/testutils.cpp b/tests/testutils.cpp index 2343d79..cd49dc1 100644 --- a/tests/testutils.cpp +++ b/tests/testutils.cpp @@ -141,6 +141,7 @@ string TestApplication::testFilePath(const string &name) const return "./testfiles/" + name; } +#ifdef PLATFORM_UNIX /*! * \brief Returns the full path to a working copy of the test file with the specified \a name. */ @@ -191,5 +192,6 @@ string TestApplication::workingCopyPath(const string &name) const } return string(); } +#endif } diff --git a/tests/testutils.h b/tests/testutils.h index cc3da3e..9ed42bd 100644 --- a/tests/testutils.h +++ b/tests/testutils.h @@ -15,7 +15,9 @@ public: operator bool() const; std::string testFilePath(const std::string &name) const; +#ifdef PLATFORM_UNIX std::string workingCopyPath(const std::string &name) const; +#endif static const TestApplication *instance(); private: @@ -58,6 +60,7 @@ inline LIB_EXPORT std::string testFilePath(const std::string &name) return TestApplication::instance()->testFilePath(name); } +#ifdef PLATFORM_UNIX /*! * \brief Convenience function which returns the full path to a working copy of the test file with the specified \a name. * \remarks A TestApplication must be present. @@ -66,6 +69,7 @@ inline LIB_EXPORT std::string workingCopyPath(const std::string &name) { return TestApplication::instance()->workingCopyPath(name); } +#endif }