summaryrefslogtreecommitdiffstats
path: root/tools/slang-test
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-09-28 11:54:24 -0700
committerGitHub <noreply@github.com>2021-09-28 11:54:24 -0700
commitcdf1b2c007fefdca128584d2a9f63dec3d350e16 (patch)
tree9a7dbe0c78794e6d2d8c215017119ef06e9f8ab6 /tools/slang-test
parentaf788b62e18bbd55cd748ad60400a74cf1bc93ee (diff)
Improvements to the unit test framework. (#1948)
Diffstat (limited to 'tools/slang-test')
-rw-r--r--tools/slang-test/test-reporter.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/slang-test/test-reporter.h b/tools/slang-test/test-reporter.h
index ecf6fbab4..94e5de6ed 100644
--- a/tools/slang-test/test-reporter.h
+++ b/tools/slang-test/test-reporter.h
@@ -68,12 +68,12 @@ class TestReporter : public ITestReporter
void startSuite(const Slang::String& name);
void endSuite();
- virtual void startTest(const char* testName) override;
- virtual void addResult(TestResult result) override;
- virtual void addResultWithLocation(TestResult result, const char* testText, const char* file, int line) override;
- virtual void addResultWithLocation(bool testSucceeded, const char* testText, const char* file, int line) override;
- virtual void addExecutionTime(double time) override;
- virtual void endTest() override;
+ virtual SLANG_NO_THROW void SLANG_MCALL startTest(const char* testName) override;
+ virtual SLANG_NO_THROW void SLANG_MCALL addResult(TestResult result) override;
+ virtual SLANG_NO_THROW void SLANG_MCALL addResultWithLocation(TestResult result, const char* testText, const char* file, int line) override;
+ virtual SLANG_NO_THROW void SLANG_MCALL addResultWithLocation(bool testSucceeded, const char* testText, const char* file, int line) override;
+ virtual SLANG_NO_THROW void SLANG_MCALL addExecutionTime(double time) override;
+ virtual SLANG_NO_THROW void SLANG_MCALL endTest() override;
/// Runs start/endTest and outputs the result
TestResult addTest(const Slang::String& testName, bool isPass);
@@ -83,7 +83,7 @@ class TestReporter : public ITestReporter
// Called for an error in the test-runner (not for an error involving a test itself).
void message(TestMessageType type, const Slang::String& errorText);
void messageFormat(TestMessageType type, char const* message, ...);
- virtual void message(TestMessageType type, char const* message) override;
+ virtual SLANG_NO_THROW void SLANG_MCALL message(TestMessageType type, char const* message) override;
void dumpOutputDifference(const Slang::String& expectedOutput, const Slang::String& actualOutput);