1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00

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.
This commit is contained in:
Jakob Holderbaum
2014-02-16 06:03:31 +01:00
parent a18b894618
commit 5fbc23e856

View File

@@ -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);