]> git.siccegge.de Git - frida/frida.git/commitdiff
Create a Settings object in fridatest as well
authorChristoph Egger <christoph@christoph-egger.org>
Tue, 26 May 2015 19:23:25 +0000 (21:23 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Tue, 26 May 2015 19:23:25 +0000 (21:23 +0200)
Otherwise it just segfaults!

src/test.cxx

index 66cde1274861825036d3d7ab3ac0e6f961c23016..ea8c47389d023e9c9d66c517294492c24d6aae5e 100644 (file)
@@ -3,6 +3,7 @@
 #include "log4cxx/basicconfigurator.h"
 #include <QApplication>
 #include "Config.hxx"
+#include "core/Settings.hxx"
 
 const char* TEST_DATA_DIRECTORY;
 
@@ -14,6 +15,7 @@ int main(int argc, char **argv) {
        log4cxx::Logger::getRootLogger()->setLevel(level);
 
        QApplication::addLibraryPath(CONFIG_LIBDIR);
+       Settings settings;
        if (argc > 1)
                TEST_DATA_DIRECTORY = argv[1];
        else