mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user