aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_empty_response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_empty_response.c')
-rw-r--r--src/testcurl/https/test_empty_response.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/testcurl/https/test_empty_response.c b/src/testcurl/https/test_empty_response.c
index 57e2d676..37061b65 100644
--- a/src/testcurl/https/test_empty_response.c
+++ b/src/testcurl/https/test_empty_response.c
@@ -201,10 +201,16 @@ main (int argc, char *const *argv)
201 if (0 != curl_global_init (CURL_GLOBAL_ALL)) 201 if (0 != curl_global_init (CURL_GLOBAL_ALL))
202 { 202 {
203 fprintf (stderr, "Error: %s\n", strerror (errno)); 203 fprintf (stderr, "Error: %s\n", strerror (errno));
204 return -1; 204 return 99;
205 }
206 if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version)
207 {
208 fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n");
209 curl_global_cleanup ();
210 return 77;
205 } 211 }
206 if (0 != (errorCount = testInternalSelectGet ())) 212 if (0 != (errorCount = testInternalSelectGet ()))
207 fprintf (stderr, "Fail: %d\n", errorCount); 213 fprintf (stderr, "Failed test: %s, error: %u.\n", argv[0], errorCount);
208 curl_global_cleanup (); 214 curl_global_cleanup ();
209 return errorCount != 0; 215 return errorCount != 0 ? 1 : 0;
210} 216}