diff --git a/extras/fixture/src/unity_fixture.c b/extras/fixture/src/unity_fixture.c index b6f8a659bcc4e8f2456e1fce371713a6e71606e0..45a2c025d6ad5ed9362fd441b532979aa76ef8cb 100644 --- a/extras/fixture/src/unity_fixture.c +++ b/extras/fixture/src/unity_fixture.c @@ -28,7 +28,7 @@ static void announceTestRun(unsigned int runNumber) UnityPrintNumber(runNumber+1); UnityPrint(" of "); UnityPrintNumber(UnityFixture.RepeatCount); - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); } int UnityMain(int argc, const char* argv[], void (*runAllTests)(void)) @@ -43,7 +43,7 @@ int UnityMain(int argc, const char* argv[], void (*runAllTests)(void)) UnityBegin(argv[0]); announceTestRun(r); runAllTests(); - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); UnityEnd(); } @@ -396,7 +396,7 @@ void UnityConcludeFixtureTest(void) { //if (UnityFixture.Verbose) //{ - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); //} Unity.TestIgnores++; } @@ -405,13 +405,13 @@ void UnityConcludeFixtureTest(void) if (UnityFixture.Verbose) { UnityPrint(" PASS"); - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); } } else if (Unity.CurrentTestFailed) { Unity.TestFailures++; - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); } Unity.CurrentTestFailed = 0; diff --git a/src/unity.c b/src/unity.c index 5e4018ac1e78824c072ff0ed990bfa87f2c44660..f49b1913943416d3ed8120158fe4bd8ac54ec6e5 100644 --- a/src/unity.c +++ b/src/unity.c @@ -355,7 +355,7 @@ void UnityConcludeTest(void) Unity.CurrentTestFailed = 0; Unity.CurrentTestIgnored = 0; - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); } //----------------------------------------------- @@ -1272,16 +1272,16 @@ void UnityBegin(const char* filename) //----------------------------------------------- int UnityEnd(void) { - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); UnityPrint(UnityStrBreaker); - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); UnityPrintNumber((_U_SINT)(Unity.NumberOfTests)); UnityPrint(UnityStrResultsTests); UnityPrintNumber((_U_SINT)(Unity.TestFailures)); UnityPrint(UnityStrResultsFailures); UnityPrintNumber((_U_SINT)(Unity.TestIgnores)); UnityPrint(UnityStrResultsIgnored); - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); if (Unity.TestFailures == 0U) { UnityPrintOk(); @@ -1290,7 +1290,7 @@ int UnityEnd(void) { UnityPrintFail(); } - UNITY_PRINT_EOL; + UNITY_PRINT_EOL(); UNITY_OUTPUT_COMPLETE(); return (int)(Unity.TestFailures); } diff --git a/src/unity_internals.h b/src/unity_internals.h index 231799a199b222c761a980e96c7ff02932a97d17..26d18e362009d118206dba1050cccef721427da5 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -292,7 +292,7 @@ extern int UNITY_OUTPUT_CHAR(int); #endif #ifndef UNITY_PRINT_EOL -#define UNITY_PRINT_EOL UNITY_OUTPUT_CHAR('\n') +#define UNITY_PRINT_EOL() UNITY_OUTPUT_CHAR('\n') #endif #ifndef UNITY_OUTPUT_START