aboutsummaryrefslogtreecommitdiffstats
path: root/tests/internals/test_common.c
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2014-06-30 22:50:14 +0100
committerMartin Pärtel <martin.partel@gmail.com>2014-06-30 22:50:14 +0100
commit9bf3ec8cd48c835e02ff96cd97d1581b2f9ba5b3 (patch)
tree05e8bfc74fdb13c1724991e3ee57308c7cf4a9a7 /tests/internals/test_common.c
parent3f7daee57d1e57ef522447fd601805971bb358c8 (diff)
downloadbindfs-9bf3ec8cd48c835e02ff96cd97d1581b2f9ba5b3.tar.gz
Implemented rate limiter.
Fixes #12.
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;
+}