summaryrefslogtreecommitdiff
path: root/tests/cgaltest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cgaltest.cc')
-rw-r--r--tests/cgaltest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/cgaltest.cc b/tests/cgaltest.cc
index 076983f..98617a3 100644
--- a/tests/cgaltest.cc
+++ b/tests/cgaltest.cc
@@ -104,7 +104,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