From 61fe8e07a126fe06cac5078bc35a7568ed71e8f3 Mon Sep 17 00:00:00 2001 From: Niklas Hauser Date: Tue, 17 Nov 2015 10:45:14 +0000 Subject: [PATCH] Handlers: Remove forced newline after assertion failure. This was a workaround for unity's failure to add a newline after printing an assertion failure. This has been fixed in unity. --- "frameworks\\utest/source/default_handlers.cpp" | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git "a/frameworks\\utest/source/default_handlers.cpp" "b/frameworks\\utest/source/default_handlers.cpp" index ce7d0792f1..d3606ccca1 100644 --- "a/frameworks\\utest/source/default_handlers.cpp" +++ "b/frameworks\\utest/source/default_handlers.cpp" @@ -57,9 +57,7 @@ status_t mbed::test::v0::verbose_case_teardown_handler(const Case *const source, status_t mbed::test::v0::verbose_case_failure_handler(const Case *const /*source*/, const failure_t reason) { - if (reason == FAILURE_ASSERTION) { - printf("\n"); - } else { + if (reason != FAILURE_ASSERTION) { printf(">>> failed with reason '%s'\n", stringify(reason)); } return (reason == FAILURE_TEARDOWN) ? STATUS_ABORT : STATUS_CONTINUE;