summaryrefslogtreecommitdiff
path: root/include/cppunit/TestFailure.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppunit/TestFailure.h')
-rw-r--r--include/cppunit/TestFailure.h36
1 files changed, 17 insertions, 19 deletions
diff --git a/include/cppunit/TestFailure.h b/include/cppunit/TestFailure.h
index b5d095c..9285a1b 100644
--- a/include/cppunit/TestFailure.h
+++ b/include/cppunit/TestFailure.h
@@ -1,6 +1,7 @@
#ifndef CPPUNIT_TESTFAILURE_H // -*- C++ -*-
#define CPPUNIT_TESTFAILURE_H
+#include <cppunit/Portability.h>
#include <string>
namespace CppUnit {
@@ -20,33 +21,30 @@ class Exception;
class TestFailure
{
public:
- TestFailure (Test *failedTest, Exception *thrownException);
- virtual ~TestFailure ();
+ TestFailure( Test *failedTest,
+ Exception *thrownException,
+ bool isError );
- Test* failedTest ();
+ virtual ~TestFailure ();
- Exception* thrownException ();
-
- std::string toString () const;
+ Test *failedTest() const;
+
+ Exception *thrownException() const;
+
+ bool isError() const;
+
+ std::string toString() const;
protected:
- Test *m_failedTest;
- Exception *m_thrownException;
+ Test *m_failedTest;
+ Exception *m_thrownException;
+ bool m_isError;
private:
- TestFailure (const TestFailure& other);
- TestFailure& operator= (const TestFailure& other);
+ TestFailure( const TestFailure &other );
+ TestFailure &operator =( const TestFailure& other );
};
-/// Gets the failed test.
-inline Test *TestFailure::failedTest ()
-{ return m_failedTest; }
-
-
-/// Gets the thrown exception.
-inline Exception *TestFailure::thrownException ()
-{ return m_thrownException; }
-
} // namespace CppUnit