diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-01 14:13:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-05 09:22:02 -0500 |
commit | 05b54f6a6a24ebdb47de4f7e41cf94f2f6be93bd (patch) | |
tree | ab0b383c73f1ab5fd0106e4e4687f137351559fa /src/test/fuzz/fuzzing_common.c | |
parent | a0ee54549fec3ae710ab5e3623d707bd08adcafe (diff) | |
download | tor-05b54f6a6a24ebdb47de4f7e41cf94f2f6be93bd.tar.gz tor-05b54f6a6a24ebdb47de4f7e41cf94f2f6be93bd.zip |
Use subsystems manager for subsystems used in tests.
Diffstat (limited to 'src/test/fuzz/fuzzing_common.c')
-rw-r--r-- | src/test/fuzz/fuzzing_common.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/fuzz/fuzzing_common.c b/src/test/fuzz/fuzzing_common.c index 879f9e74dc..21aa07cfe2 100644 --- a/src/test/fuzz/fuzzing_common.c +++ b/src/test/fuzz/fuzzing_common.c @@ -3,6 +3,7 @@ #define CRYPTO_ED25519_PRIVATE #include "orconfig.h" #include "core/or/or.h" +#include "app/main/subsysmgr.h" #include "lib/err/backtrace.h" #include "app/config/config.h" #include "test/fuzz/fuzzing.h" @@ -95,12 +96,10 @@ disable_signature_checking(void) static void global_init(void) { - tor_threads_init(); - tor_compress_init(); + subsystems_init_upto(SUBSYS_LEVEL_LIBS); + flush_log_messages_from_startup(); - /* Initialise logging first */ - init_logging(1); - configure_backtrace_handler(get_version()); + tor_compress_init(); if (crypto_global_init(0, NULL, NULL) < 0) abort(); |