diff options
Diffstat (limited to 'cpp/test/IceUtil/thread/TestBase.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/TestBase.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cpp/test/IceUtil/thread/TestBase.cpp b/cpp/test/IceUtil/thread/TestBase.cpp new file mode 100644 index 00000000000..d36b72be161 --- /dev/null +++ b/cpp/test/IceUtil/thread/TestBase.cpp @@ -0,0 +1,31 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <IceUtil/IceUtil.h> + +#include <TestBase.h> + +using namespace std; + +void +TestBase::start() +{ + cout << "running " << _name << " test... " << flush; + try + { + run(); + } + catch(const IceUtil::Exception& e) + { + cout << e << " failed" << endl; + throw TestFailed(_name); + } + cout << "ok" << endl; +} |