From 7a63005220938b30df41b51334942d7d79c14cf9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 27 Sep 2013 23:15:53 -0400 Subject: Basic unit test for condition variables. --- src/test/test.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/test/test.c') 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) \ -- cgit v1.2.3-54-g00ecf