Merge pull request #235 from orpiske/protocol-log-override

Proposed enhancement: do not override trace settings from environment
This commit is contained in:
Ian Craggs 2017-03-18 00:58:10 +00:00 committed by GitHub
commit 19d0c91d89
3 changed files with 3 additions and 3 deletions

View File

@ -1063,7 +1063,7 @@ int main(int argc, char** argv)
fprintf(xml, "<testsuite name=\"test1\" tests=\"%d\">\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);

View File

@ -683,7 +683,7 @@ int main(int argc, char** argv)
fprintf(xml, "<testsuite name=\"test1\" tests=\"%d\">\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);

View File

@ -1530,7 +1530,7 @@ int main(int argc, char** argv)
fprintf(xml, "<testsuite name=\"test3\" tests=\"%d\">\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 */