[tor-commits] [tor/master] Initialize all subsystems during the unit tests

nickm at torproject.org nickm at torproject.org
Mon Feb 24 12:51:37 UTC 2020


commit 2e5d555c0e4adb5ea4739ec58124f61c46bd20aa
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Feb 13 15:11:18 2020 -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.
---
 src/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
index 655e36e33..16a62bd53 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();
 





More information about the tor-commits mailing list