From c463fc4c3323ead25f4eb7dee9feeb1dd412dc01 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Tue, 7 Mar 2017 21:11:05 +0100 Subject: [PATCH] Do not override protocol log settings from environment variables Signed-off-by: Otavio Rodolfo Piske --- test/test1.c | 2 +- test/test2.c | 2 +- test/test3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test1.c b/test/test1.c index 141d6dae..76e1838b 100644 --- a/test/test1.c +++ b/test/test1.c @@ -1142,7 +1142,7 @@ int main(int argc, char** argv) fprintf(xml, "\n", (int)(ARRAY_SIZE(tests) - 1)); setenv("MQTT_C_CLIENT_TRACE", "ON", 1); - setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 1); + setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 0); getopts(argc, argv); diff --git a/test/test2.c b/test/test2.c index 71ce135a..0efc4290 100644 --- a/test/test2.c +++ b/test/test2.c @@ -683,7 +683,7 @@ int main(int argc, char** argv) fprintf(xml, "\n", (int)(ARRAY_SIZE(tests) - 1)); setenv("MQTT_C_CLIENT_TRACE", "ON", 1); - setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 1); + setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 0); getopts(argc, argv); diff --git a/test/test3.c b/test/test3.c index a6fc2911..e242343d 100644 --- a/test/test3.c +++ b/test/test3.c @@ -1530,7 +1530,7 @@ int main(int argc, char** argv) fprintf(xml, "\n", (int)(ARRAY_SIZE(tests) - 1)); setenv("MQTT_C_CLIENT_TRACE", "ON", 1); - setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 1); + setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 0); getopts(argc, argv); if (options.test_no == 0) { /* run all the tests */