Esempio n. 1
0
bool StopSimulator()
{
	bool result = StopDaemon(s3simulator_pid, "testfiles/s3simulator.pid",
		"s3simulator.memleaks", true);
	s3simulator_pid = 0;
	return result;
}
Esempio n. 2
0
bool StopClient(bool wait_for_process)
{
	bool result = StopDaemon(bbackupd_pid, "testfiles/bbackupd.pid",
		"bbackupd.memleaks", wait_for_process);
	bbackupd_pid = 0;
	return result;
}
Esempio n. 3
0
bool StopServer(bool wait_for_process)
{
	bool result = StopDaemon(bbstored_pid, "testfiles/bbstored.pid",
		"bbstored.memleaks", wait_for_process);
	bbstored_pid = 0;
	return result;
}
Esempio n. 4
0
void ServiceTests::Test_StartStopDaemon()
{
    bool bStart = false;
    bool bStop = false;
    std::string sErrorMsg;

    bStart = StartDaemon(sErrorMsg);
    TEST_ASSERT_MSG(bStart, sErrorMsg.c_str());

    bStop = StopDaemon(sErrorMsg);
    TEST_ASSERT_MSG(bStop, sErrorMsg.c_str());

    __TEST_CLEANUP__;

    StopDaemon(sErrorMsg);
}
Esempio n. 5
0
void LoomExitProcess() {
  unsigned i;
  LoomExitThread(1/* Forced */);
  if (StopDaemon() == -1) {
    fprintf(stderr, "failed to stop the loom daemon\n");
  }
  ClearFilters();
  for (i = 0; i < MaxNumInsts; ++i)
    assert(LoomOperations[i] == NULL);
  fprintf(stderr, "***** LoomExitProcess *****\n");
}
void RequestTests::TearDown()
{
	std::string sErrorMsg;
	StopDaemon(sErrorMsg);
}