From 5fbc23e856ab3497d324826ef0ffe836a81d3d7f Mon Sep 17 00:00:00 2001 From: Jakob Holderbaum Date: Sun, 16 Feb 2014 06:03:31 +0100 Subject: [PATCH] Print an EOL before printing the TestResult while executing the spec By printing this newline, the filepath of the failing assertion does not get preceded by the dot which represents a running test. This gives the advantage, that the complete output of unity can be used as it is with a makefile in vim. Every error gets displayed in the quickfix and you can jump appropiately. --- src/unity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unity.c b/src/unity.c index 138978c..392625e 100644 --- a/src/unity.c +++ b/src/unity.c @@ -249,6 +249,7 @@ void UnityPrintOk(void) //----------------------------------------------- void UnityTestResultsBegin(const char* file, const UNITY_LINE_TYPE line) { + UNITY_PRINT_EOL; UnityPrint(file); UNITY_OUTPUT_CHAR(':'); UnityPrintNumber(line);