diff options
| author | Yong He <yonghe@outlook.com> | 2021-09-24 11:33:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-24 11:33:44 -0700 |
| commit | bec8e6aec85b6e3f875c58bdd59eb15613978358 (patch) | |
| tree | 0791fb2ce1be786c17e5a6ee489ed3065fc07332 /tools/slang-test/test-reporter.cpp | |
| parent | f2a3c933bc11a498c622fa18694c84beca8ca031 (diff) | |
Move existing unit tests to a standalone dll. (#1945)
Diffstat (limited to 'tools/slang-test/test-reporter.cpp')
| -rw-r--r-- | tools/slang-test/test-reporter.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/slang-test/test-reporter.cpp b/tools/slang-test/test-reporter.cpp index 4a7c76c4c..84bcaa32c 100644 --- a/tools/slang-test/test-reporter.cpp +++ b/tools/slang-test/test-reporter.cpp @@ -10,7 +10,6 @@ using namespace Slang; /* static */TestReporter* TestReporter::s_reporter = nullptr; -/* static */TestRegister* TestRegister::s_first; static void appendXmlEncode(char c, StringBuilder& out) { @@ -106,7 +105,7 @@ bool TestReporter::canWriteStdError() const } } -void TestReporter::startTest(const String& testName) +void TestReporter::startTest(const char* testName) { // Must be in a suite assert(m_suiteStack.getCount()); @@ -537,6 +536,12 @@ void TestReporter::messageFormat(TestMessageType type, char const* format, ...) message(type, builder); } +void TestReporter::message(TestMessageType type, const char* messageContent) +{ + message(type, String(messageContent)); +} + + bool TestReporter::didAllSucceed() const { return m_passedTestCount == (m_totalTestCount - m_ignoredTestCount); |
