Commit 5cb8b134 authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

Connector SSH: removed old commander class unit tests.

parent 2d6a5c40
/*
** Copyright 2011 Merethis
**
** This file is part of Centreon Connector SSH.
**
** Centreon Connector SSH is free software: you can redistribute it
** and/or modify it under the terms of the GNU Affero General Public
** License as published by the Free Software Foundation, either version
** 3 of the License, or (at your option) any later version.
**
** Centreon Connector SSH is distributed in the hope that it will be
** useful, but WITHOUT ANY WARRANTY; without even the implied warranty
** of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public
** License along with Centreon Connector SSH. If not, see
** <http://www.gnu.org/licenses/>.
*/
#include "com/centreon/connector/ssh/commander.hh"
using namespace com::centreon::connector::ssh;
/**
* Check that the commander singleton works properly.
*
* @return 0 on success.
*/
int main() {
// Return value.
int retval(0);
// By default, commander is not loaded.
retval |= (&commander::instance() != NULL);
// Load commander.
commander::load();
retval |= (&commander::instance() == NULL);
// Unload commander.
commander::unload();
retval |= (&commander::instance() != NULL);
// Return check result.
return (retval);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment