aboutsummaryrefslogtreecommitdiffstats
path: root/tests/internals/test_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/internals/test_common.c')
-rw-r--r--tests/internals/test_common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/internals/test_common.c b/tests/internals/test_common.c
new file mode 100644
index 0000000..6c10292
--- /dev/null
+++ b/tests/internals/test_common.c
@@ -0,0 +1,9 @@
+
+#include "test_common.h"
+
+int failures = 0;
+
+int run_suite(void (*suite)()) {
+ suite();
+ return (failures > 0) ? 1 : 0;
+}