Fix scheduler assertion in circuitmux/destroy_cell_queue unit test

This commit is contained in:
Andrea Shepard 2013-12-04 21:43:13 -08:00
parent 63bb9a795e
commit 283646fd90

View File

@ -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 */