From 68809ea83320501fe6ba7c006f4626424d355b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 11 May 2018 17:41:54 +0200 Subject: [PATCH] Add a CRYB_VERBOSE environment variable. --- lib/test/cryb_t_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/test/cryb_t_main.c b/lib/test/cryb_t_main.c index 993e0f9..bc9d81c 100644 --- a/lib/test/cryb_t_main.c +++ b/lib/test/cryb_t_main.c @@ -261,6 +261,9 @@ t_main(t_prepare_func t_prepare, t_cleanup_func t_cleanup, t_str_is_true(getenv("CRYB_LEAKTEST")) : !t_str_is_false(getenv("CRYB_LEAKTEST")); + /* enable verbose mode if requested */ + t_verbose = t_str_is_true(getenv("CRYB_VERBOSE")); + /* make all unintentional allocation failures fatal */ t_malloc_fatal = 1;