Like test_out() but only prints anything if success is false.
This makes it quite much like test_assert(), except that it
doesn't print the code fragment, it prints a custom string.
However, it still counts as a test in the total count, unlike
test_assert*()s.
Signed-off-by: Phil Carmody <phil@dovecot.fi>
test_out_reason(name, success, NULL);
}
+void test_out_quiet(const char *name, bool success)
+{
+ if (success) {
+ total_count++;
+ return;
+ }
+ test_out(name, success);
+}
+
void test_out_reason(const char *name, bool success, const char *reason)
{
int i = 0;
void test_end(void);
void test_out(const char *name, bool success);
+void test_out_quiet(const char *name, bool success); /* only prints failures */
void test_out_reason(const char *name, bool success, const char *reason)
ATTR_NULL(3);