summaryrefslogtreecommitdiff
path: root/tests/tests-common.cc
diff options
context:
space:
mode:
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