aboutsummaryrefslogtreecommitdiff
path: root/src/test/testing_common.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-13 15:11:18 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-24 07:49:39 -0500
commit2e5d555c0e4adb5ea4739ec58124f61c46bd20aa (patch)
treec256788a4161a35ee06848d77c82ea995aac823b /src/test/testing_common.c
parent67d921a69617d2b0a9ab56dfe1a6e7631f7ed5eb (diff)
downloadtor-2e5d555c0e4adb5ea4739ec58124f61c46bd20aa.tar.gz
tor-2e5d555c0e4adb5ea4739ec58124f61c46bd20aa.zip
Initialize all subsystems during the unit tests
Previously we had initialized only the library subsystems. This made it hard to write some tests, and encouraged people to put their subsystems at a level lower than they really belonged at. Instead, it probably just makes sense to initialize everything before we start the tests. Without this fix, 33316 breaks our tests because of raising the level of the ocirc/orconn events.
Diffstat (limited to 'src/test/testing_common.c')
-rw-r--r--src/test/testing_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c
index 655e36e336..16a62bd532 100644
--- a/src/test/testing_common.c
+++ b/src/test/testing_common.c
@@ -273,7 +273,7 @@ main(int c, const char **v)
int loglevel = LOG_ERR;
int accel_crypto = 0;
- subsystems_init_upto(SUBSYS_LEVEL_LIBS);
+ subsystems_init();
options = options_new();