summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/thread/TestBase.cpp
blob: d36b72be16168716f569c66c57f2c909aa70a299 (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
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;
}