From 2fad0f3d52c6c7511231b1b2eced484306835a52 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 5 Apr 2013 15:06:54 -0400 Subject: [PATCH] Add an environment variable (EVENT_DEBUG_MODE) to run unit tests in debug mode Not all tests currently pass with debug mode on. --- test/regress_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/regress_main.c b/test/regress_main.c index 11e5f8d9..a47a78ae 100644 --- a/test/regress_main.c +++ b/test/regress_main.c @@ -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))