diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-22 16:27:29 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-22 16:27:29 -0400 |
commit | 1a73e178011d24ad2ef252dab7256d7c4fa94a64 (patch) | |
tree | 35990ad7f447fcebe8422aed4b66047f9fec2d29 /src/test/test_cell_queue.c | |
parent | fef65fa64341fb70df0e7b34d91d3b08a74e7aad (diff) | |
parent | 170e0df7417e78f7b689f3189e7a0b5b8dfd2722 (diff) | |
download | tor-1a73e178011d24ad2ef252dab7256d7c4fa94a64.tar tor-1a73e178011d24ad2ef252dab7256d7c4fa94a64.tar.gz |
Merge remote-tracking branch 'andrea/bug11476'
Diffstat (limited to 'src/test/test_cell_queue.c')
-rw-r--r-- | src/test/test_cell_queue.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/test_cell_queue.c b/src/test/test_cell_queue.c index 1eac07310..92629823e 100644 --- a/src/test/test_cell_queue.c +++ b/src/test/test_cell_queue.c @@ -16,7 +16,10 @@ test_cq_manip(void *arg) cell_t cell; (void) arg; +#ifdef ENABLE_MEMPOOLS init_cell_pool(); +#endif /* ENABLE_MEMPOOLS */ + cell_queue_init(&cq); tt_int_op(cq.n, ==, 0); @@ -96,7 +99,10 @@ test_cq_manip(void *arg) packed_cell_free(pc_tmp); cell_queue_clear(&cq); + +#ifdef ENABLE_MEMPOOLS free_cell_pool(); +#endif /* ENABLE_MEMPOOLS */ } static void @@ -108,7 +114,9 @@ test_circuit_n_cells(void *arg) (void)arg; +#ifdef ENABLE_MEMPOOLS init_cell_pool(); +#endif /* ENABLE_MEMPOOLS */ pc1 = packed_cell_new(); pc2 = packed_cell_new(); @@ -137,7 +145,9 @@ test_circuit_n_cells(void *arg) circuit_free(TO_CIRCUIT(or_c)); circuit_free(TO_CIRCUIT(origin_c)); +#ifdef ENABLE_MEMPOOLS free_cell_pool(); +#endif /* ENABLE_MEMPOOLS */ } struct testcase_t cell_queue_tests[] = { |