mingw-w64: workingCopyPath is (currently) not supported
This commit is contained in:
parent
c4082d90c7
commit
29c0db0090
|
@ -141,6 +141,7 @@ string TestApplication::testFilePath(const string &name) const
|
||||||
return "./testfiles/" + name;
|
return "./testfiles/" + name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef PLATFORM_UNIX
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns the full path to a working copy of the test file with the specified \a name.
|
* \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();
|
return string();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,9 @@ public:
|
||||||
|
|
||||||
operator bool() const;
|
operator bool() const;
|
||||||
std::string testFilePath(const std::string &name) const;
|
std::string testFilePath(const std::string &name) const;
|
||||||
|
#ifdef PLATFORM_UNIX
|
||||||
std::string workingCopyPath(const std::string &name) const;
|
std::string workingCopyPath(const std::string &name) const;
|
||||||
|
#endif
|
||||||
static const TestApplication *instance();
|
static const TestApplication *instance();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -58,6 +60,7 @@ inline LIB_EXPORT std::string testFilePath(const std::string &name)
|
||||||
return TestApplication::instance()->testFilePath(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.
|
* \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.
|
* \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);
|
return TestApplication::instance()->workingCopyPath(name);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue