diff --git a/shared/source/assert_handler/assert_handler.cpp b/shared/source/assert_handler/assert_handler.cpp index 4db29321fc..a351f43e32 100644 --- a/shared/source/assert_handler/assert_handler.cpp +++ b/shared/source/assert_handler/assert_handler.cpp @@ -45,6 +45,7 @@ void AssertHandler::printMessage() const { nullptr}; printfFormatter.setInitialOffset(offsetof(AssertBufferHeader, begin)); + printToStderr("AssertHandler::printMessage\n"); printfFormatter.printKernelOutput([](char *str) { printToStderr(str); }); } diff --git a/shared/test/unit_test/assert_handler/assert_handler_tests.cpp b/shared/test/unit_test/assert_handler/assert_handler_tests.cpp index 235cf2ab45..c4aaa5d668 100644 --- a/shared/test/unit_test/assert_handler/assert_handler_tests.cpp +++ b/shared/test/unit_test/assert_handler/assert_handler_tests.cpp @@ -83,5 +83,5 @@ TEST(AssertHandlerTests, GivenFlagSetWhenPrintAssertAndAbortCalledThenMessageIsP EXPECT_THROW(assertHandler.printAssertAndAbort(), std::exception); std::string output = testing::internal::GetCapturedStderr(); - EXPECT_STREQ("assert!", output.c_str()); -} \ No newline at end of file + EXPECT_STREQ("AssertHandler::printMessage\nassert!", output.c_str()); +}