diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-29 17:44:55 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-29 17:44:55 +0100 |
commit | 296e36ce9a9f6265a881125f81097a883733b15c (patch) | |
tree | 1b18dd68ce1a32e43f5cfe3eee151d1da015acf9 /src/microhttpd/test_upgrade.c | |
parent | 2dd1b43e09ad97149f6cc0aa4bdd6cc0942841df (diff) | |
download | libmicrohttpd-296e36ce9a9f6265a881125f81097a883733b15c.tar.gz libmicrohttpd-296e36ce9a9f6265a881125f81097a883733b15c.zip |
make test_upgrade logging more verbose by default for #5189
Diffstat (limited to 'src/microhttpd/test_upgrade.c')
-rw-r--r-- | src/microhttpd/test_upgrade.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index 62d4afbd..db2efe38 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -1096,8 +1096,9 @@ main (int argc, | |||
1096 | use_tls_tool = TLS_CLI_NO_TOOL; | 1096 | use_tls_tool = TLS_CLI_NO_TOOL; |
1097 | test_tls = has_in_name(argv[0], "_tls"); | 1097 | test_tls = has_in_name(argv[0], "_tls"); |
1098 | 1098 | ||
1099 | if (has_param(argc, argv, "-v") || has_param(argc, argv, "--verbose")) | 1099 | verbose = 1; |
1100 | verbose = 1; | 1100 | if (has_param(argc, argv, "-q") || has_param(argc, argv, "--quiet")) |
1101 | verbose = 0; | ||
1101 | 1102 | ||
1102 | if (test_tls) | 1103 | if (test_tls) |
1103 | { | 1104 | { |
@@ -1109,9 +1110,9 @@ main (int argc, | |||
1109 | else if (has_param(argc, argv, "--use-gnutls-lib")) | 1110 | else if (has_param(argc, argv, "--use-gnutls-lib")) |
1110 | use_tls_tool = TLS_LIB_GNUTLS; | 1111 | use_tls_tool = TLS_LIB_GNUTLS; |
1111 | #if defined(HAVE_FORK) && defined(HAVE_WAITPID) | 1112 | #if defined(HAVE_FORK) && defined(HAVE_WAITPID) |
1112 | else if (0 == system ("gnutls-cli --version 1> /dev/null")) | 1113 | else if (0 == system ("gnutls-cli --version 1> /dev/null 2> /dev/null")) |
1113 | use_tls_tool = TLS_CLI_GNUTLS; | 1114 | use_tls_tool = TLS_CLI_GNUTLS; |
1114 | else if (0 == system ("openssl version 1> /dev/null")) | 1115 | else if (0 == system ("openssl version 1> /dev/null 2> /dev/null")) |
1115 | use_tls_tool = TLS_CLI_OPENSSL; | 1116 | use_tls_tool = TLS_CLI_OPENSSL; |
1116 | #endif /* HAVE_FORK && HAVE_WAITPID */ | 1117 | #endif /* HAVE_FORK && HAVE_WAITPID */ |
1117 | else | 1118 | else |