diff options
Diffstat (limited to 'src/testcurl/https/test_https_session_info.c')
-rw-r--r-- | src/testcurl/https/test_https_session_info.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c index 62a01518..d4f2985e 100644 --- a/src/testcurl/https/test_https_session_info.c +++ b/src/testcurl/https/test_https_session_info.c | |||
@@ -180,18 +180,20 @@ main (int argc, char *const *argv) | |||
180 | if (0 != curl_global_init (CURL_GLOBAL_ALL)) | 180 | if (0 != curl_global_init (CURL_GLOBAL_ALL)) |
181 | { | 181 | { |
182 | fprintf (stderr, "Error (code: %u)\n", errorCount); | 182 | fprintf (stderr, "Error (code: %u)\n", errorCount); |
183 | return -1; | 183 | return 99; |
184 | } | 184 | } |
185 | 185 | ||
186 | ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version; | 186 | ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version; |
187 | if (NULL == ssl_version) | 187 | if (NULL == ssl_version) |
188 | { | 188 | { |
189 | fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); | 189 | fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); |
190 | curl_global_cleanup (); | ||
190 | return 77; | 191 | return 77; |
191 | } | 192 | } |
192 | if (0 != strncmp (ssl_version, "GnuTLS", 6)) | 193 | if (0 != strncmp (ssl_version, "GnuTLS", 6)) |
193 | { | 194 | { |
194 | fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); | 195 | fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); |
196 | curl_global_cleanup (); | ||
195 | return 77; | 197 | return 77; |
196 | } | 198 | } |
197 | #if LIBCURL_VERSION_NUM >= 0x072200 | 199 | #if LIBCURL_VERSION_NUM >= 0x072200 |
@@ -199,7 +201,5 @@ main (int argc, char *const *argv) | |||
199 | #endif | 201 | #endif |
200 | print_test_result (errorCount, argv[0]); | 202 | print_test_result (errorCount, argv[0]); |
201 | curl_global_cleanup (); | 203 | curl_global_cleanup (); |
202 | if (errorCount > 0) | 204 | return errorCount != 0 ? 1 : 0; |
203 | fprintf (stderr, "Error (code: %u)\n", errorCount); | ||
204 | return errorCount; | ||
205 | } | 205 | } |