aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get_parallel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_https_get_parallel.c')
-rw-r--r--src/testcurl/https/test_https_get_parallel.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/testcurl/https/test_https_get_parallel.c b/src/testcurl/https/test_https_get_parallel.c
index d9d6eefa..45c08d0c 100644
--- a/src/testcurl/https/test_https_get_parallel.c
+++ b/src/testcurl/https/test_https_get_parallel.c
@@ -142,11 +142,16 @@ main (int argc, char *const *argv)
142 if (0 != curl_global_init (CURL_GLOBAL_ALL)) 142 if (0 != curl_global_init (CURL_GLOBAL_ALL))
143 { 143 {
144 fprintf (stderr, "Error: %s\n", strerror (errno)); 144 fprintf (stderr, "Error: %s\n", strerror (errno));
145 return -1; 145 return 99;
146 } 146 }
147 147
148 if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version)
149 {
150 fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n");
151 return 77;
152 }
148 if (curl_uses_nss_ssl() == 0) 153 if (curl_uses_nss_ssl() == 0)
149 aes256_sha = "rsa_aes_256_sha"; 154 aes256_sha = "rsa_aes_256_sha";
150#ifdef EPOLL_SUPPORT 155#ifdef EPOLL_SUPPORT
151 errorCount += 156 errorCount +=
152 test_wrap ("single threaded daemon, single client, epoll", &test_single_client, 157 test_wrap ("single threaded daemon, single client, epoll", &test_single_client,
@@ -181,5 +186,7 @@ main (int argc, char *const *argv)
181 srv_self_signed_cert_pem, MHD_OPTION_END); 186 srv_self_signed_cert_pem, MHD_OPTION_END);
182 187
183 curl_global_cleanup (); 188 curl_global_cleanup ();
184 return errorCount != 0; 189 if (errorCount != 0)
190 fprintf (stderr, "Failed test: %s, error: %u.\n", argv[0], errorCount);
191 return errorCount != 0 ? 1 : 0;
185} 192}