summaryrefslogtreecommitdiff
path: root/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp
blob: f2a2e97b7a211cf70af18313763adc5fc21cccc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// $Id$
#include "TestAppBase.h"

TestAppBase::TestAppBase(const char* name)
  : name_(name)
{
}


TestAppBase::~TestAppBase()
{
}


const char*
TestAppBase::name() const
{
  return this->name_.c_str();
}


int
TestAppBase::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
{
  int rc = this->run_i(argc, argv ACE_ENV_ARG_PARAMETER);
  ACE_CHECK_RETURN (-1);

  // Convert 1 to 0.  Leave 0 and -1 as they are.
  return (rc == 1) ? 0 : rc;
}