diff --git a/extras/fixture/src/unity_fixture.c b/extras/fixture/src/unity_fixture.c index 36c1fb16327fa4c1fff3222294c189f79fce985f..2771198f435b4ed60ee9c9659c22f055f2da1519 100644 --- a/extras/fixture/src/unity_fixture.c +++ b/extras/fixture/src/unity_fixture.c @@ -419,7 +419,8 @@ void UnityConcludeFixtureTest(void) { if (UnityFixture.Verbose) { - UnityPrint(" PASS"); + UnityPrint(" "); + UnityPrint(UnityStrPass); UNITY_EXEC_TIME_STOP(); UNITY_PRINT_EXEC_TIME(); UNITY_PRINT_EOL(); diff --git a/src/unity.c b/src/unity.c index 4888962f70e339204c548e952122fea7119f5301..7ed85e0b49d9da689bc0cfc278e4cf51d8f8d48c 100644 --- a/src/unity.c +++ b/src/unity.c @@ -21,15 +21,15 @@ void UNITY_OUTPUT_CHAR(int); struct UNITY_STORAGE_T Unity; #ifdef UNITY_OUTPUT_COLOR -static const char UnityStrOk[] = "\033[42mOK\033[00m"; -static const char UnityStrPass[] = "\033[42mPASS\033[00m"; -static const char UnityStrFail[] = "\033[41mFAIL\033[00m"; -static const char UnityStrIgnore[] = "\033[43mIGNORE\033[00m"; +const char UnityStrOk[] = "\033[42mOK\033[00m"; +const char UnityStrPass[] = "\033[42mPASS\033[00m"; +const char UnityStrFail[] = "\033[41mFAIL\033[00m"; +const char UnityStrIgnore[] = "\033[43mIGNORE\033[00m"; #else -static const char UnityStrOk[] = "OK"; -static const char UnityStrPass[] = "PASS"; -static const char UnityStrFail[] = "FAIL"; -static const char UnityStrIgnore[] = "IGNORE"; +const char UnityStrOk[] = "OK"; +const char UnityStrPass[] = "PASS"; +const char UnityStrFail[] = "FAIL"; +const char UnityStrIgnore[] = "IGNORE"; #endif static const char UnityStrNull[] = "NULL"; static const char UnityStrSpacer[] = ". "; diff --git a/src/unity_internals.h b/src/unity_internals.h index 0024d9182d61b9a5ceabbbd08d54abc16d502e0e..ad12fde69b887f702afa99bf8e3ba8236d6873dc 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -639,6 +639,11 @@ UNITY_INTERNAL_PTR UnityDoubleToPtr(const double num); * Error Strings We Might Need *-------------------------------------------------------*/ +extern const char UnityStrOk[]; +extern const char UnityStrPass[]; +extern const char UnityStrFail[]; +extern const char UnityStrIgnore[]; + extern const char UnityStrErrFloat[]; extern const char UnityStrErrDouble[]; extern const char UnityStrErr64[];