@@ -59,11 +59,13 @@ typedef enum
59
59
UTASSERT_CASETYPE_TSF , /**< Test Setup Failure (TSF) status messages */
60
60
UTASSERT_CASETYPE_TTF , /**< Test Teardown Failure (TTF) status messages */
61
61
UTASSERT_CASETYPE_MIR , /**< Manual Inspection Required (MIR) status messages */
62
+ UTASSERT_CASETYPE_WARN , /**< Test was unable to run (WARN) status messages (e.g. initial condition wrong) */
62
63
UTASSERT_CASETYPE_NA , /**< Test Not Applicable (NA) status messages */
63
64
UTASSERT_CASETYPE_BEGIN , /**< Beginning of test status messages */
64
65
UTASSERT_CASETYPE_END , /**< End of test status messages */
65
66
UTASSERT_CASETYPE_INFO , /**< All other informational status messages */
66
67
UTASSERT_CASETYPE_PASS , /**< Test case passed (normal) status messages */
68
+ UTASSERT_CASETYPE_FLOW , /**< Other condition checks/messages that record test flow, but are not assertions */
67
69
UTASSERT_CASETYPE_DEBUG , /**< Debugging messages */
68
70
UTASSERT_CASETYPE_MAX /**< Reserved value, No messages should be used with this */
69
71
} UtAssert_CaseType_t ;
@@ -153,6 +155,11 @@ typedef struct
153
155
*/
154
156
#define UtAssert_MIR (...) UtAssertEx(false, UTASSERT_CASETYPE_MIR, __FILE__, __LINE__, __VA_ARGS__)
155
157
158
+ /**
159
+ * \brief Skip a test due to improper setup (Manual Intervention Required)
160
+ */
161
+ #define UtAssert_WARN (...) UtAssertEx(false, UTASSERT_CASETYPE_WARN, __FILE__, __LINE__, __VA_ARGS__)
162
+
156
163
/**
157
164
* \brief Compares two integers and determines if they are equal within a specified absolute tolerance.
158
165
*/
@@ -587,6 +594,22 @@ bool UtAssertEx(bool Expression, UtAssert_CaseType_t CaseType, const char *File,
587
594
*/
588
595
void UtAssert_Abort (const char * Message );
589
596
597
+ /**
598
+ * \brief Gets the short/abbreviated name for a UtAssert case type
599
+ *
600
+ * For tagging lines in the output log file, this returns a short string
601
+ * representing the human-readable name of the UtAssert case type.
602
+ *
603
+ * The returned string is 5 characters or less in length.
604
+ *
605
+ * \note This function does not return NULL, such that it can be
606
+ * used directly inside a printf()-style call.
607
+ *
608
+ * \param CaseType Message case type
609
+ * \returns String representation of case type
610
+ */
611
+ const char * UtAssert_GetCaseTypeAbbrev (UtAssert_CaseType_t CaseType );
612
+
590
613
/**
591
614
* \brief Output an informational message to the console/log file
592
615
*
0 commit comments