tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 2e5d555c0e4adb5ea4739ec58124f61c46bd20aa
parent 67d921a69617d2b0a9ab56dfe1a6e7631f7ed5eb
Author: Nick Mathewson <nickm@torproject.org>
Date:   Thu, 13 Feb 2020 15:11:18 -0500

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:
Msrc/test/testing_common.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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();