Add an environment variable (EVENT_DEBUG_MODE) to run unit tests in debug mode

Not all tests currently pass with debug mode on.
This commit is contained in:
Nick Mathewson 2013-04-05 15:06:54 -04:00
parent 3339800854
commit 2fad0f3d52

View File

@ -438,6 +438,9 @@ main(int argc, const char **argv)
evthread_enable_lock_debugging();
#endif
if (getenv("EVENT_DEBUG_MODE"))
event_enable_debug_mode();
tinytest_set_aliases(testaliases);
if (tinytest_main(argc,argv,testgroups))