From 93226fc500d7101be9681b9883566d1e0f88c304 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);