summaryrefslogtreecommitdiff
path: root/tests/csgtestcore.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-12 05:14:58 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-12 05:14:58 (GMT)
commitdccc039211eebe3f69c935557bd56abae323c26f (patch)
treefb39b939619db2bb258de78cf38012919762fbbc /tests/csgtestcore.cc
parent6b8a5e266ca1725e35e76aef0caa639fe77fdc48 (diff)
Got rid of remaining Qt dependencies. The test framework should now be Qt-free
Diffstat (limited to 'tests/csgtestcore.cc')
-rw-r--r--tests/csgtestcore.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/csgtestcore.cc b/tests/csgtestcore.cc
index 7583a41..1e518e2 100644
--- a/tests/csgtestcore.cc
+++ b/tests/csgtestcore.cc
@@ -23,9 +23,6 @@
#include "csgtermnormalizer.h"
#include "OffscreenView.h"
-#include <QCoreApplication>
-#include <QTimer>
-
#include <sstream>
#include <vector>
@@ -128,14 +125,12 @@ int csgtestcore(int argc, char *argv[], test_type_e test_type)
Builtins::instance()->initialize();
- QCoreApplication app(argc, argv);
-
fs::path original_path = fs::current_path();
std::string currentdir = boosty::stringy( fs::current_path() );
- parser_init(QCoreApplication::instance()->applicationDirPath().toStdString());
- add_librarydir(boosty::stringy(fs::path(QCoreApplication::instance()->applicationDirPath().toStdString()) / "../libraries"));
+ parser_init(boosty::stringy(fs::path(argv[0]).branch_path()));
+ add_librarydir(boosty::stringy(fs::path(argv[0]).branch_path() / "../libraries"));
Context root_ctx;
register_builtin(root_ctx);
contact: Jan Huwald // Impressum