summaryrefslogtreecommitdiff
path: root/tests/cgalcachetest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cgalcachetest.cc')
-rw-r--r--tests/cgalcachetest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/cgalcachetest.cc b/tests/cgalcachetest.cc
index 5675ef5..18e9efa 100644
--- a/tests/cgalcachetest.cc
+++ b/tests/cgalcachetest.cc
@@ -152,7 +152,9 @@ int main(int argc, char **argv)
exit(1);
}
- 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();
AbstractNode *absolute_root_node = root_module->evaluate(&root_ctx, &root_inst);
contact: Jan Huwald // Impressum