aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/autotest/testresult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autotest/testresult.cpp')
-rw-r--r--plugins/autotest/testresult.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/plugins/autotest/testresult.cpp b/plugins/autotest/testresult.cpp
index 8859d8fb1a..293145f3e9 100644
--- a/plugins/autotest/testresult.cpp
+++ b/plugins/autotest/testresult.cpp
@@ -23,18 +23,20 @@ namespace Autotest {
namespace Internal {
FaultyTestResult::FaultyTestResult(Result::Type result, const QString &description)
- : TestResult(QString(), QString(), QString(), result, description)
{
+ setResult(result);
+ setDescription(description);
}
-TestResult::TestResult(const QString &className, const QString &testCase, const QString &dataTag,
- Result::Type result, const QString &description)
- : m_class(className),
- m_case(testCase),
- m_dataTag(dataTag),
- m_result(result),
- m_description(description),
- m_line(0)
+TestResult::TestResult()
+ : TestResult(QString())
+{
+}
+
+TestResult::TestResult(const QString &className)
+ : m_class(className)
+ , m_result(Result::INVALID)
+ , m_line(0)
{
}