]> granicus.if.org Git - libevent/commitdiff
Add an environment variable (EVENT_DEBUG_MODE) to run unit tests in debug mode
authorNick Mathewson <nickm@torproject.org>
Fri, 5 Apr 2013 19:06:54 +0000 (15:06 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 5 Apr 2013 19:06:54 +0000 (15:06 -0400)
Not all tests currently pass with debug mode on.

test/regress_main.c

index 11e5f8d94c7909c19c70093f69a44611c737e781..a47a78ae5b3e4efd6cb787d26acfa2823b62f9ee 100644 (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))