diff options
-rw-r--r-- | test/unit/UnitTester.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/unit/UnitTester.cxx b/test/unit/UnitTester.cxx index ae2b757db..f326477c4 100644 --- a/test/unit/UnitTester.cxx +++ b/test/unit/UnitTester.cxx @@ -19,16 +19,16 @@ #define CATCH_CONFIG_RUNNER #include "catch.hpp" -// Needed for PLATFORM_ASSERT in code being tested +using namespace Scintilla; -namespace Scintilla { +// Needed for PLATFORM_ASSERT in code being tested -void Platform::Assert(const char *c, const char *file, int line) { +void Platform::Assert(const char *c, const char *file, int line) noexcept { fprintf(stderr, "Assertion [%s] failed at %s %d\n", c, file, line); abort(); } -void Platform::DebugPrintf(const char *format, ...) { +void Platform::DebugPrintf(const char *format, ...) noexcept { char buffer[2000]; va_list pArguments; va_start(pArguments, format); @@ -37,8 +37,6 @@ void Platform::DebugPrintf(const char *format, ...) { fprintf(stderr, "%s", buffer); } -} - int main(int argc, char* argv[]) { const int result = Catch::Session().run(argc, argv); |