diff options
author | Andrea Shepard <andrea@torproject.org> | 2013-12-04 21:43:13 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 22:49:36 -0700 |
commit | 283646fd9089a337003dcd7c020e0820c7270662 (patch) | |
tree | 1e7059913e24760c43fc1a3b936145ae6e6f0ad0 /src/test/test_circuitmux.c | |
parent | 63bb9a795e3a05620831512fe7d70690e5f5fb5a (diff) | |
download | tor-283646fd9089a337003dcd7c020e0820c7270662.tar.gz tor-283646fd9089a337003dcd7c020e0820c7270662.zip |
Fix scheduler assertion in circuitmux/destroy_cell_queue unit test
Diffstat (limited to 'src/test/test_circuitmux.c')
-rw-r--r-- | src/test/test_circuitmux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_circuitmux.c b/src/test/test_circuitmux.c index a3cacc4cc7..c1c8f77641 100644 --- a/src/test/test_circuitmux.c +++ b/src/test/test_circuitmux.c @@ -8,6 +8,7 @@ #include "channel.h" #include "circuitmux.h" #include "relay.h" +#include "scheduler.h" #include "test.h" /* XXXX duplicated function from test_circuitlist.c */ @@ -36,6 +37,8 @@ test_cmux_destroy_cell_queue(void *arg) cell_queue_t *cq = NULL; packed_cell_t *pc = NULL; + scheduler_init(); + #ifdef ENABLE_MEMPOOLS init_cell_pool(); #endif /* ENABLE_MEMPOOLS */ |