summaryrefslogtreecommitdiff
path: root/tools/slang-test/test-reporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-test/test-reporter.cpp')
-rw-r--r--tools/slang-test/test-reporter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/slang-test/test-reporter.cpp b/tools/slang-test/test-reporter.cpp
index 88d24d212..1f6c00637 100644
--- a/tools/slang-test/test-reporter.cpp
+++ b/tools/slang-test/test-reporter.cpp
@@ -160,6 +160,11 @@ void TestReporter::addResult(TestResult result)
m_numCurrentResults++;
}
+TestResult TestReporter::getResult() const
+{
+ return m_currentInfo.testResult;
+}
+
void TestReporter::addExecutionTime(double time)
{
std::lock_guard<std::recursive_mutex> lock(m_mutex);