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).
This commit is contained in:
Zane D. Purvis
2014-08-04 12:37:22 -04:00
parent 1a868f3305
commit a94264b8c0

View File

@ -273,7 +273,6 @@ void UnityPrintOk(void)
//----------------------------------------------- //-----------------------------------------------
void UnityTestResultsBegin(const char* file, const UNITY_LINE_TYPE line) void UnityTestResultsBegin(const char* file, const UNITY_LINE_TYPE line)
{ {
UNITY_PRINT_EOL;
UnityPrint(file); UnityPrint(file);
UNITY_OUTPUT_CHAR(':'); UNITY_OUTPUT_CHAR(':');
UnityPrintNumber((_U_SINT)line); UnityPrintNumber((_U_SINT)line);
@ -309,6 +308,7 @@ void UnityConcludeTest(void)
Unity.CurrentTestFailed = 0; Unity.CurrentTestFailed = 0;
Unity.CurrentTestIgnored = 0; Unity.CurrentTestIgnored = 0;
UNITY_PRINT_EOL;
} }
//----------------------------------------------- //-----------------------------------------------
@ -1164,5 +1164,3 @@ int UnityEnd(void)
} }
//----------------------------------------------- //-----------------------------------------------