root/library/tests/unittest-cpp/Test.cpp @ 809

Revision 706, 0.8 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
Line 
1#include "Config.h"
2#include "Test.h"
3#include "TestList.h"
4#include "TestResults.h"
5#include "AssertException.h"
6#include "MemoryOutStream.h"
7#include "ExecuteTest.h"
8#include <cstdio>
9
10#ifdef UNITTEST_POSIX
11#include "Posix/SignalTranslator.h"
12#endif
13
14namespace UnitTest {
15
16TestList& Test::GetTestList() {
17        static TestList s_list;
18        return s_list;
19}
20
21Test::Test ( char const* testName, char const* suiteName, char const* filename, int lineNumber )
22                : m_details ( testName, suiteName, filename, lineNumber )
23                , next ( 0 )
24                , m_timeConstraintExempt ( false ) {
25}
26
27Test::~Test() {
28}
29
30void Test::Run() {
31        // made more chatty; presumes the only used test reporter is
32        // TestReporterStdout
33        std::printf ( "running %s...\n", m_details.testName );
34
35        ExecuteTest ( *this, m_details );
36}
37
38void Test::RunImpl() const {
39}
40
41}
Note: See TracBrowser for help on using the browser.