diff options
author | Alexander Færøy <ahf@torproject.org> | 2018-11-28 18:10:02 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 16:39:28 -0500 |
commit | bc6983afed24c0b83a49d2cef531dcc036245a04 (patch) | |
tree | 49d2b9410d5db0bd77567b88b338938133a1c070 /src/test/test_process_slow.c | |
parent | f983a60a6c9ce70e1c674458e468b0d7dcd80c01 (diff) | |
download | tor-bc6983afed24c0b83a49d2cef531dcc036245a04.tar.gz tor-bc6983afed24c0b83a49d2cef531dcc036245a04.zip |
Use run_main_loop_until_done() for process_t tests.
This patch changes the slow process_t tests to use
run_main_loop_until_done() instead of do_main_loop() since
do_main_loop() initializes a lot of subsystem callbacks that we don't
need to run in our tests.
See: https://bugs.torproject.org/28179
Diffstat (limited to 'src/test/test_process_slow.c')
-rw-r--r-- | src/test/test_process_slow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_process_slow.c b/src/test/test_process_slow.c index 2ec9ff28a0..ad84127bba 100644 --- a/src/test/test_process_slow.c +++ b/src/test/test_process_slow.c @@ -6,6 +6,7 @@ * \brief Slow test cases for the Process API. */ +#define MAINLOOP_PRIVATE #include "orconfig.h" #include "core/or/or.h" #include "core/mainloop/mainloop.h" @@ -168,7 +169,7 @@ run_main_loop(void) NULL); /* Run our main loop. */ - ret = do_main_loop(); + ret = run_main_loop_until_done(); /* Clean up our main loop timeout timer. */ tt_int_op(ret, OP_EQ, 0); |