summaryrefslogtreecommitdiff
path: root/tests/modulecachetest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modulecachetest.cc')
-rw-r--r--tests/modulecachetest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/modulecachetest.cc b/tests/modulecachetest.cc
index ae872e2..2ef7a6c 100644
--- a/tests/modulecachetest.cc
+++ b/tests/modulecachetest.cc
@@ -92,7 +92,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();
root_node = root_module->evaluate(&root_ctx, &root_inst);
contact: Jan Huwald // Impressum