Example #1
0
void
services_die(const char *msg, int rboot)
{
  ilog(L_NOTICE, "Dying: %s", msg);

  cleanup_channel_modes();
  cleanup_conf();
#ifdef HAVE_RUBY
  cleanup_ruby();
#endif
  cleanup_db();
  cleanup_modules();

  EVP_cleanup();

  send_queued_all();
  exit_client(&me, &me, "Services shutting down");
  send_queued_all();

  if(me.uplink != NULL)
    MyFree(me.uplink->server);
 
  cleanup_client();
  cleanup_channel();
  cleanup_interface();
  cleanup_mqueue();
  cleanup_tor();
  unregister_callback(iorecv_cb);
  unregister_callback(connected_cb);
  unregister_callback(iosend_cb);
  libio_cleanup();
  exit(rboot);
}
Example #2
0
int main (void)
{
    init();

    int number_failed;
    Suite * s = create_test_suite();

    SRunner * sr = srunner_create (s);
    srunner_set_log (sr, "check_glyr_opt.log");
    srunner_run_all (sr, CK_VERBOSE);

    number_failed = srunner_ntests_failed (sr);
    srunner_free (sr);

    cleanup_db();
    return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
};
Example #3
0
void TestModels::cleanupTestCase()
{
    cleanup_db();
}
Example #4
0
static GlyrDatabase * setup_db (void)
{
    cleanup_db();
    system ("mkdir -p /tmp/check");
    return glyr_db_init ("/tmp/check");
}
void TestEmanualCmd::cleanupTestCase()
{
    cleanup_db();
}