Change unittest to be compatible with the new init and deinit of the config.
Alexandre Fouillé
9 years ago
125 | 125 | &_log, |
126 | 126 | com::centreon::engine::logging::log_all, |
127 | 127 | com::centreon::engine::logging::most); |
128 | config = new configuration::state; | |
128 | 129 | commands::set::load(); |
129 | 130 | configuration::applier::state::load(); |
130 | 131 | checks::checker::load(); |
153 | 154 | checks::checker::unload(); |
154 | 155 | configuration::applier::state::unload(); |
155 | 156 | commands::set::unload(); |
157 | delete config; | |
158 | config = NULL; | |
156 | 159 | com::centreon::clib::unload(); |
157 | 160 | } |
158 | 161 | catch (std::exception const& e) { |