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:
Nick Mathewson 2020-02-13 15:11:18 -05:00
parent 67d921a696
commit 2e5d555c0e

View File

@ -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();