Back to index

salome-kernel  6.5.0
Functions
TestLauncher.cxx File Reference
#include "Launcher.hxx"

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 22 of file TestLauncher.cxx.

{

  try {
    Launcher_cpp *lcpp = new Launcher_cpp();
    ResourcesManager_cpp *rcpp = new ResourcesManager_cpp();
    lcpp->SetResourcesManager(rcpp);
    delete lcpp;
    delete rcpp;
    std::cout << "test OK" << std::endl;
  } catch ( const ResourcesException &ex) {
    std::cout << ex.msg.c_str() << std::endl;
  }
  catch ( const LauncherException &ex) {
    std::cout << ex.msg.c_str() << std::endl;
  }
  catch (...){
    std::cout << "test KO" << std::endl;
  }
  exit(0);
}