summaryrefslogtreecommitdiff
path: root/tests/csgtestcore.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2012-05-28 16:48:46 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2012-05-28 16:48:46 (GMT)
commitdd2002a81673b3875ce8c4e8a61cb10278c4eb03 (patch)
tree7aaadf1c9b12cd37a7a913d3e76256f6406fa939 /tests/csgtestcore.cc
parent4381762f5aa2e6a56258618e585e1510ead88684 (diff)
parent67eb2ebe90447e966dc1e08b91c43d937c521583 (diff)
Tidy up code. Generate proper test png images. Merge branch 'master' into caliston1.
Conflicts: src/PolySetCGALEvaluator.cc
Diffstat (limited to 'tests/csgtestcore.cc')
-rw-r--r--tests/csgtestcore.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/csgtestcore.cc b/tests/csgtestcore.cc
index b9f0d27..cb96940 100644
--- a/tests/csgtestcore.cc
+++ b/tests/csgtestcore.cc
@@ -276,7 +276,9 @@ int csgtestcore(int argc, char *argv[], test_type_e test_type)
}
if (!sysinfo_dump) {
- fs::current_path(fs::path(filename).parent_path());
+ if (fs::path(filename).has_parent_path()) {
+ fs::current_path(fs::path(filename).parent_path());
+ }
}
AbstractNode::resetIndexCounter();
contact: Jan Huwald // Impressum