summaryrefslogtreecommitdiff
path: root/tests/tests-common.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-02-04 00:43:53 (GMT)
committerMarius Kintel <marius@kintel.net>2012-02-15 00:32:37 (GMT)
commitb9d218e13760f21be5aa94c15631d63b29439e18 (patch)
treef01d1e16766b5af06939aa531e84b40bcf6f2f31 /tests/tests-common.cc
parent44ff85399011ea1bd3eb812ce97d312ccc4f32eb (diff)
Initial implementation of ModuleCache and dependency tracking of used modules
Diffstat (limited to 'tests/tests-common.cc')
-rw-r--r--tests/tests-common.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/tests-common.cc b/tests/tests-common.cc
index 1694a74..5b0cc3b 100644
--- a/tests/tests-common.cc
+++ b/tests/tests-common.cc
@@ -7,9 +7,9 @@
#include <QFileInfo>
#include <sstream>
-AbstractModule *parsefile(const char *filename)
+Module *parsefile(const char *filename)
{
- AbstractModule *root_module = NULL;
+ Module *root_module = NULL;
QFileInfo fileInfo(filename);
handle_dep(filename);
@@ -27,6 +27,9 @@ AbstractModule *parsefile(const char *filename)
fclose(fp);
text << "\n" << commandline_commands;
root_module = parse(text.str().c_str(), fileInfo.absolutePath().toLocal8Bit(), false);
+ if (root_module) {
+ root_module->handleDependencies();
+ }
}
return root_module;
}
contact: Jan Huwald // Impressum