diff options
Diffstat (limited to 'ACE/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp')
-rw-r--r-- | ACE/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ACE/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp b/ACE/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp new file mode 100644 index 00000000000..faa872c6e87 --- /dev/null +++ b/ACE/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp @@ -0,0 +1,26 @@ +// $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, ACE_TCHAR *argv[]) +{ + int rc = this->run_i (argc, argv); + + // Convert 1 to 0. Leave 0 and -1 as they are. + return (rc == 1) ? 0 : rc; +} |