]> git.mxchange.org Git - simgear.git/commitdiff
Change location used for path tests
authorJames Turner <zakalawe@mac.com>
Fri, 15 Jul 2016 16:57:32 +0000 (17:57 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
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

index a640389e66d8c469d94a30981c81b774849d1c25..fb9c4dae0903596639d962eb0583189ce031bd20 100644 (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);