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;
total_count++;
}
+void test_out_quiet(const char *name, bool success)
+{
+ if (success) {
+ total_count++;
+ return;
+ }
+ test_out(name, success);
+}
+
+void test_out_reason_quiet(const char *name, bool success, const char *reason)
+{
+ if (success) {
+ total_count++;
+ return;
+ }
+ test_out_reason(name, success, reason);
+}
+
void
test_expect_error_string_n_times(const char *substr, unsigned int times)
{
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);
+/* These only print failures */
+void test_out_quiet(const char *name, bool success);
+void test_out_reason_quiet(const char *name, bool success, const char *reason)
+ ATTR_NULL(3);
+
int test_run(void (*const test_functions[])(void)) ATTR_WARN_UNUSED_RESULT;
struct named_test {
const char *name;