summaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-27 23:15:53 -0400
committerNick Mathewson <nickm@torproject.org>2015-01-14 11:17:09 -0500
commit7a63005220938b30df41b51334942d7d79c14cf9 (patch)
treee1d3671a8d7a7cd195c7a4b307f2c7288b9211f3 /src/test/test.c
parente47a90a976f883571bea6e58620aa13f058873e3 (diff)
downloadtor-7a63005220938b30df41b51334942d7d79c14cf9.tar.gz
tor-7a63005220938b30df41b51334942d7d79c14cf9.zip
Basic unit test for condition variables.
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c
index edc28cd2d4..9171306d18 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -1258,6 +1258,24 @@ test_stats(void *arg)
tor_free(s);
}
+
+static void *
+passthrough_test_setup(const struct testcase_t *testcase)
+{
+ return testcase->setup_data;
+}
+static int
+passthrough_test_cleanup(const struct testcase_t *testcase, void *ptr)
+{
+ (void)testcase;
+ (void)ptr;
+ return 1;
+}
+
+const struct testcase_setup_t passthrough_setup = {
+ passthrough_test_setup, passthrough_test_cleanup
+};
+
#define ENT(name) \
{ #name, test_ ## name , 0, NULL, NULL }
#define FORK(name) \