diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-21 14:47:16 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-21 14:47:16 -0500 |
commit | 23fc1691b6dff4b0a3ad173809915901eb47fcab (patch) | |
tree | 30e39346fb1fbd44ec4b5c71e4c8fbb53848c0b2 /src/test/test.c | |
parent | f0415c16001ebfd06aec7a16bdf8677c7a931b65 (diff) | |
parent | 84f5cb749d614deeb66f9032c54cd9885e300493 (diff) | |
download | tor-23fc1691b6dff4b0a3ad173809915901eb47fcab.tar.gz tor-23fc1691b6dff4b0a3ad173809915901eb47fcab.zip |
Merge branch 'better_workqueue_v3_squashed'
Diffstat (limited to 'src/test/test.c')
-rw-r--r-- | src/test/test.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c index 65d15f12bd..fc5290f0b9 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -1258,6 +1258,23 @@ 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) \ @@ -1297,6 +1314,7 @@ extern struct testcase_t cell_queue_tests[]; extern struct testcase_t options_tests[]; extern struct testcase_t socks_tests[]; extern struct testcase_t entrynodes_tests[]; +extern struct testcase_t thread_tests[]; extern struct testcase_t extorport_tests[]; extern struct testcase_t controller_event_tests[]; extern struct testcase_t logging_tests[]; @@ -1324,6 +1342,7 @@ static struct testgroup_t testgroups[] = { { "container/", container_tests }, { "util/", util_tests }, { "util/logging/", logging_tests }, + { "util/thread/", thread_tests }, { "cellfmt/", cell_format_tests }, { "cellqueue/", cell_queue_tests }, { "dir/", dir_tests }, |