From 5c4696a28af5ea701af4a22a5ab1ed423a661427 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 15 Jul 2016 17:57:32 +0100 Subject: [PATCH] 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. --- simgear/misc/path_test.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/misc/path_test.cxx b/simgear/misc/path_test.cxx index a640389e..fb9c4dae 100644 --- a/simgear/misc/path_test.cxx +++ b/simgear/misc/path_test.cxx @@ -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); -- 2.39.2