From 784bf75e0d0a180c29fbb491721c3694ad51f2ca Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Sat, 30 Dec 2023 23:42:54 +0100 Subject: [PATCH] refactor: Require semicolon at end of test macros --- .../aviation/testaircraftparts/testaircraftparts.cpp | 3 ++- tests/test.h | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/blackmisc/aviation/testaircraftparts/testaircraftparts.cpp b/tests/blackmisc/aviation/testaircraftparts/testaircraftparts.cpp index 7316aaea6..574b8665d 100644 --- a/tests/blackmisc/aviation/testaircraftparts/testaircraftparts.cpp +++ b/tests/blackmisc/aviation/testaircraftparts/testaircraftparts.cpp @@ -82,7 +82,8 @@ namespace BlackMiscTest } } // ns -BLACKTEST_APPLESS_MAIN(BlackMiscTest::CTestAircraftParts) +//! main +BLACKTEST_APPLESS_MAIN(BlackMiscTest::CTestAircraftParts); #include "testaircraftparts.moc" diff --git a/tests/test.h b/tests/test.h index ed77b4ffe..8485b7de8 100644 --- a/tests/test.h +++ b/tests/test.h @@ -48,7 +48,8 @@ { \ return EXIT_FAILURE; \ } \ - } + } \ + static_assert(true) //! Implements a main() function that executes all tests in TestObject //! including instantiating a QCoreApplication object. @@ -66,7 +67,8 @@ { \ return EXIT_FAILURE; \ } \ - } + } \ + static_assert(true) //! \endcond