@@ -59,11 +59,13 @@ typedef enum
5959 UTASSERT_CASETYPE_TSF , /**< Test Setup Failure (TSF) status messages */
6060 UTASSERT_CASETYPE_TTF , /**< Test Teardown Failure (TTF) status messages */
6161 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) */
6263 UTASSERT_CASETYPE_NA , /**< Test Not Applicable (NA) status messages */
6364 UTASSERT_CASETYPE_BEGIN , /**< Beginning of test status messages */
6465 UTASSERT_CASETYPE_END , /**< End of test status messages */
6566 UTASSERT_CASETYPE_INFO , /**< All other informational status messages */
6667 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 */
6769 UTASSERT_CASETYPE_DEBUG , /**< Debugging messages */
6870 UTASSERT_CASETYPE_MAX /**< Reserved value, No messages should be used with this */
6971} UtAssert_CaseType_t ;
@@ -153,6 +155,11 @@ typedef struct
153155 */
154156#define UtAssert_MIR (...) UtAssertEx(false, UTASSERT_CASETYPE_MIR, __FILE__, __LINE__, __VA_ARGS__)
155157
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+
156163/**
157164 * \brief Compares two integers and determines if they are equal within a specified absolute tolerance.
158165 */
@@ -587,6 +594,22 @@ bool UtAssertEx(bool Expression, UtAssert_CaseType_t CaseType, const char *File,
587594 */
588595void UtAssert_Abort (const char * Message );
589596
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+
590613/**
591614 * \brief Output an informational message to the console/log file
592615 *
0 commit comments