]> granicus.if.org Git - icinga2/commitdiff
Fix unit tests for livestatus
authorGunnar Beutner <gunnar@beutner.name>
Thu, 19 Nov 2015 19:25:10 +0000 (20:25 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 19 Nov 2015 19:25:10 +0000 (20:25 +0100)
refs #10643

test/livestatus.cpp

index 237445e4107d7aec20ad517e4315a07c289d603b..18043fbc3e0ceffec3938b38adcd1fa59c6baf6d 100644 (file)
@@ -78,13 +78,14 @@ struct GlobalConfigFixture {
                Application::DeclareSysconfDir("etc");
                Application::DeclareLocalStateDir("var");
 
+               ActivationScope ascope;
+
                Loader::LoadExtensionLibrary("icinga");
                Loader::LoadExtensionLibrary("methods"); //loaded by ITL
 
                std::vector<std::string> configs;
                configs.push_back(TestConfig);
 
-               ActivationScope ascope;
                std::vector<ConfigItem::Ptr> newItems;
 
                DaemonUtility::LoadConfigFiles(configs, newItems, "icinga2.debug", "icinga2.vars");