summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-19 04:51:47 +0000
committerYang Tse <yangsita@gmail.com>2007-02-19 04:51:47 +0000
commit75fca27f8e6ae1147c81c8b8f4e12486a4abb2a4 (patch)
tree14efa80e60341e09ac49ad3b0a2057727fef8763 /tests
parentf2cd2882a0e756277f31af19fa410ceb2bdb6472 (diff)
downloadcurl-75fca27f8e6ae1147c81c8b8f4e12486a4abb2a4.tar.gz
log a message, stating the need of openssl to run this test
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib509.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/libtest/lib509.c b/tests/libtest/lib509.c
index 8f2210f5f..ad2626204 100644
--- a/tests/libtest/lib509.c
+++ b/tests/libtest/lib509.c
@@ -332,10 +332,19 @@ int test(char *URL)
return i;
}
+
#else /* USE_SSLEAY */
+
int test(char *URL)
{
(void)URL;
- return CURLE_FAILED_INIT;
+ if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
+ fprintf(stderr, "curl_global_init() failed\n");
+ return TEST_ERR_MAJOR_BAD;
+ }
+ fprintf(stderr, "libcurl lacks openssl support needed for test 509\n");
+ curl_global_cleanup();
+ return TEST_ERR_MAJOR_BAD;
}
+
#endif /* USE_SSLEAY */