mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 14:26:30 -04:00
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:
parent
3339800854
commit
2fad0f3d52
@ -438,6 +438,9 @@ main(int argc, const char **argv)
|
|||||||
evthread_enable_lock_debugging();
|
evthread_enable_lock_debugging();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (getenv("EVENT_DEBUG_MODE"))
|
||||||
|
event_enable_debug_mode();
|
||||||
|
|
||||||
tinytest_set_aliases(testaliases);
|
tinytest_set_aliases(testaliases);
|
||||||
|
|
||||||
if (tinytest_main(argc,argv,testgroups))
|
if (tinytest_main(argc,argv,testgroups))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user