Change location used for path tests

Jenkins seems to dislike non-Latin-1 characters inside the build
tree on Linux, so use a location inside /tmp instead.
This commit is contained in:
James Turner 2016-07-15 17:57:32 +01:00
parent 31ba9dfa70
commit 93226fc500

View File

@ -73,9 +73,9 @@ SGPath::Permissions validateWrite(const SGPath&)
void test_path_dir()
{
SGPath p(simgear::Dir::current().path());
p.append("path_dir");
simgear::Dir(p).remove(true);
simgear::Dir temp = simgear::Dir::tempDir("path_dir");
temp.remove(true);
SGPath p = temp.path();
VERIFY(p.isAbsolute());
COMPARE(p.create_dir(0755), 0);