Restore HOME/Path::home() in testExpandUnix (#1846)

This commit is contained in:
zosrothko 2017-08-14 23:23:12 +02:00 committed by Aleksandar Fabijanic
parent 6cd8f3f73c
commit 88634c0c1e

View File

@ -376,12 +376,12 @@ void PathTest::testParseUnix5()
void PathTest::testExpandUnix()
{
std::string pathWithoutVar = "/usr/share/O1\\$\\$/folder";
std::string pathWithVar = "${TMPDIR}folder";
std::string pathWithVar = "${HOME}/folder";
Path p;
std::string s = p.expand(pathWithoutVar);
assert (s == "/usr/share/O1$$/folder");
s = p.expand(pathWithVar);
Path tmpPath = Path::temp();
Path tmpPath = Path::home();
tmpPath.append("folder");
assert (s == tmpPath.toString());
}