From 74579fbadf0f89154cba5d9157a57f59fcda8f70 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 26 Aug 2019 21:38:34 +0200 Subject: Improved testing framework. (#4376) --- tests/BlockTypeRegistry/BlockTypeRegistryTest.cpp | 30 +++-------------------- 1 file changed, 3 insertions(+), 27 deletions(-) (limited to 'tests/BlockTypeRegistry/BlockTypeRegistryTest.cpp') diff --git a/tests/BlockTypeRegistry/BlockTypeRegistryTest.cpp b/tests/BlockTypeRegistry/BlockTypeRegistryTest.cpp index 3479e55d7..6616dfdc0 100644 --- a/tests/BlockTypeRegistry/BlockTypeRegistryTest.cpp +++ b/tests/BlockTypeRegistry/BlockTypeRegistryTest.cpp @@ -236,30 +236,6 @@ static void testBlockTypeRegistry() -int main() -{ - LOGD("BlockTypeRegistryTest started"); - - try - { - testBlockTypeRegistry(); - } - catch (const TestException & exc) - { - LOGERROR("BlockTypeRegistryTest has failed, an unhandled exception was thrown: %s", exc.mMessage.c_str()); - return 1; - } - catch (...) - { - LOGERROR("BlockTypeRegistryTest has failed, an unhandled exception was thrown."); - return 1; - } - - LOGD("BlockTypeRegistryTest finished"); - - return 0; -} - - - - +IMPLEMENT_TEST_MAIN("BlockTypeRegistryTest", + testBlockTypeRegistry(); +) -- cgit v1.2.3