From a94264b8c039a289e6436b5648de366844bd7d86 Mon Sep 17 00:00:00 2001 From: "Zane D. Purvis" Date: Mon, 4 Aug 2014 12:37:22 -0400 Subject: [PATCH] Print newline after each test, but not before This change makes parsing the results easier for tools like ceedling, which was choking when a test used stdout and there wasn't an EOL after "PASS" (ThrowTheSwitch/Ceedling#41). --- src/unity.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/unity.c b/src/unity.c index d9e0821..8946110 100644 --- a/src/unity.c +++ b/src/unity.c @@ -273,7 +273,6 @@ void UnityPrintOk(void) //----------------------------------------------- void UnityTestResultsBegin(const char* file, const UNITY_LINE_TYPE line) { - UNITY_PRINT_EOL; UnityPrint(file); UNITY_OUTPUT_CHAR(':'); UnityPrintNumber((_U_SINT)line); @@ -309,6 +308,7 @@ void UnityConcludeTest(void) Unity.CurrentTestFailed = 0; Unity.CurrentTestIgnored = 0; + UNITY_PRINT_EOL; } //----------------------------------------------- @@ -1164,5 +1164,3 @@ int UnityEnd(void) } //----------------------------------------------- - -