mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-30 15:45:55 +02:00
Restore HOME/Path::home() in testExpandUnix (#1846)
This commit is contained in:
parent
6cd8f3f73c
commit
88634c0c1e
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user