summaryrefslogtreecommitdiff
path: root/tests/dumptest.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-07-15 01:57:41 (GMT)
committerMarius Kintel <marius@kintel.net>2012-07-15 01:57:41 (GMT)
commit2495df6bab07f14f0eed7062dec17d24599aa838 (patch)
tree738002af91eb84dc98e20b42520745161be0ca29 /tests/dumptest.cc
parent3085bcc65cd80cc70b3b118b89ee5a41e7ef8ceb (diff)
Add timestamp to cache key for modules importing files. Fixes #141
Diffstat (limited to 'tests/dumptest.cc')
-rw-r--r--tests/dumptest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dumptest.cc b/tests/dumptest.cc
index 6851fb1..b75a2e2 100644
--- a/tests/dumptest.cc
+++ b/tests/dumptest.cc
@@ -132,7 +132,10 @@ int main(int argc, char **argv)
fprintf(stderr, "Error: Unable to read back dumped file\n");
exit(1);
}
- fs::current_path(original_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