summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2020-03-01 14:54:36 +0300
committerAzat Khuzhin <azat@libevent.org>2020-03-01 14:54:36 +0300
commita11edbfa369f7a99886359b3f4baa69686dc275f (patch)
tree4d2c50cb7766b3903ffedf18a6457cf99ed3f291
parent5a5fe67ee86f780a94f3f154bc03756b7db1cd27 (diff)
downloadlibevent-a11edbfa369f7a99886359b3f4baa69686dc275f.tar.gz
test-time: enable debug mode if EVENT_DEBUG_LOGGING_ALL env set
-rw-r--r--test/test-time.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-time.c b/test/test-time.c
index c90f0f11..8d4bf7a4 100644
--- a/test/test-time.c
+++ b/test/test-time.c
@@ -94,6 +94,10 @@ main(int argc, char **argv)
evutil_weakrand_seed_(&weakrand_state, 0);
+ if (getenv("EVENT_DEBUG_LOGGING_ALL")) {
+ event_enable_debug_logging(EVENT_DBG_ALL);
+ }
+
/* Initialize the event library */
event_init();