diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-07-05 11:09:55 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-07-05 11:09:55 +0000 |
commit | 9b8cc712d4a41d71840416776bc94ee8485bb9b3 (patch) | |
tree | 7d467fdd6a66bc2b5878d82070d45adbd5c20414 /cppe/test/IceE/thread/TestBase.cpp | |
parent | cleaning the cache method out of ReferenceFactory (diff) | |
download | ice-9b8cc712d4a41d71840416776bc94ee8485bb9b3.tar.bz2 ice-9b8cc712d4a41d71840416776bc94ee8485bb9b3.tar.xz ice-9b8cc712d4a41d71840416776bc94ee8485bb9b3.zip |
Changed Ice to IceE EVERYWHERE!!!
Diffstat (limited to 'cppe/test/IceE/thread/TestBase.cpp')
-rw-r--r-- | cppe/test/IceE/thread/TestBase.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/cppe/test/IceE/thread/TestBase.cpp b/cppe/test/IceE/thread/TestBase.cpp new file mode 100644 index 00000000000..e891d4b7e32 --- /dev/null +++ b/cppe/test/IceE/thread/TestBase.cpp @@ -0,0 +1,49 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <IceE/IceE.h> + +#include <TestBase.h> +#include <TestCommon.h> + +#include <stdio.h> + +using namespace std; + +TestFailed::TestFailed(const std::string& n) : + name(n) +{ +} + +TestBase::TestBase(const std::string& n) : + _name(n) +{ +} + +string +TestBase::name() const +{ + return _name; +} + +void +TestBase::start() +{ + tprintf("running %s test... ", _name.c_str()); + try + { + run(); + } + catch(const IceE::Exception& e) + { + tprintf("%s failed\n", e.toString().c_str()); + throw TestFailed(_name); + } + tprintf("ok\n"); +} |