mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Fix scheduler assertion in circuitmux/destroy_cell_queue unit test
This commit is contained in:
parent
63bb9a795e
commit
283646fd90
@ -8,6 +8,7 @@
|
|||||||
#include "channel.h"
|
#include "channel.h"
|
||||||
#include "circuitmux.h"
|
#include "circuitmux.h"
|
||||||
#include "relay.h"
|
#include "relay.h"
|
||||||
|
#include "scheduler.h"
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
/* XXXX duplicated function from test_circuitlist.c */
|
/* XXXX duplicated function from test_circuitlist.c */
|
||||||
@ -36,6 +37,8 @@ test_cmux_destroy_cell_queue(void *arg)
|
|||||||
cell_queue_t *cq = NULL;
|
cell_queue_t *cq = NULL;
|
||||||
packed_cell_t *pc = NULL;
|
packed_cell_t *pc = NULL;
|
||||||
|
|
||||||
|
scheduler_init();
|
||||||
|
|
||||||
#ifdef ENABLE_MEMPOOLS
|
#ifdef ENABLE_MEMPOOLS
|
||||||
init_cell_pool();
|
init_cell_pool();
|
||||||
#endif /* ENABLE_MEMPOOLS */
|
#endif /* ENABLE_MEMPOOLS */
|
||||||
|
Loading…
Reference in New Issue
Block a user