From 182458ad5a0ae1819acfcf9fbc0ba06bda8c1dcd Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 27 Feb 2018 01:34:32 +0100 Subject: [PATCH] [calamares] Need a JobQueue and global storage before running any job. The 'singleton' instances don't do a very good job of being singletons or ensuring their own creation. --- src/calamares/testmain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calamares/testmain.cpp b/src/calamares/testmain.cpp index 1b5cb41f4..4dcbfea96 100644 --- a/src/calamares/testmain.cpp +++ b/src/calamares/testmain.cpp @@ -28,6 +28,7 @@ #include "Settings.h" #include "Job.h" +#include "JobQueue.h" #include #include @@ -155,6 +156,8 @@ main( int argc, char* argv[] ) return 1; std::unique_ptr< Calamares::Settings > settings_p( new Calamares::Settings( QString(), true ) ); + std::unique_ptr< Calamares::JobQueue > jobqueue_p( new Calamares::JobQueue( nullptr ) ); + cDebug() << "Calamares test module-loader" << module.moduleName(); Calamares::Module* m = load_module( module ); if ( !m )