From 0137f4a8c21718d9016c075f3faf839acfc7f2dd Mon Sep 17 00:00:00 2001 From: jsalling Date: Wed, 27 Apr 2016 21:00:04 -0500 Subject: [PATCH] Add option to print FAILED instead of FAIL during the summary For easier automation and searching for a test suite failure --- src/unity.c | 3 +++ src/unity.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/unity.c b/src/unity.c index c749779..f46600d 100644 --- a/src/unity.c +++ b/src/unity.c @@ -1323,6 +1323,9 @@ int UnityEnd(void) else { UnityPrintFail(); +#ifdef UNITY_DIFFERENTIATE_FINAL_FAIL + UNITY_OUTPUT_CHAR('E'); UNITY_OUTPUT_CHAR('D'); +#endif } UNITY_PRINT_EOL(); UNITY_OUTPUT_COMPLETE(); diff --git a/src/unity.h b/src/unity.h index 34c43ff..9b3d97b 100644 --- a/src/unity.h +++ b/src/unity.h @@ -48,6 +48,7 @@ void tearDown(void); // Output // - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired +// - define UNITY_DIFFERENTIATE_FINAL_FAIL to print FAILED (vs. FAIL) at test end summary - for automated search for failure // Optimization // - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge