summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/thread/TestBase.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2001-12-27 18:38:22 +0000
committerMatthew Newhook <matthew@zeroc.com>2001-12-27 18:38:22 +0000
commitca2b7f71b4133faf486a677b3744904c0f759471 (patch)
tree2ea5e06f611c338f8160a0c3bd36d069118926fe /cpp/test/IceUtil/thread/TestBase.cpp
parentfile run.py was initially added on branch IceThread. (diff)
downloadice-ca2b7f71b4133faf486a677b3744904c0f759471.tar.bz2
ice-ca2b7f71b4133faf486a677b3744904c0f759471.tar.xz
ice-ca2b7f71b4133faf486a677b3744904c0f759471.zip
IceThread merge.
Diffstat (limited to 'cpp/test/IceUtil/thread/TestBase.cpp')
-rw-r--r--cpp/test/IceUtil/thread/TestBase.cpp31
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;
+}