aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-03-26 22:06:44 +0100
committerDan Fandrich <dan@coneharvesters.com>2014-03-26 22:08:53 +0100
commit7cb763cf576e9d6ab93fcc1fbfb02c95766a1334 (patch)
tree30c015b2b8d7f6513c0b8bfbf2d10ab8707be385 /tests
parentf82e0edc171b33528bc4f59036505d98ecf1d816 (diff)
test1397: Fixed compilation with some SSL backends
The test is only valid when one of four SSL backends is in use, and must otherwise return success.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/unit1397.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/unit1397.c b/tests/unit/unit1397.c
index 7e508a840..2a67b1358 100644
--- a/tests/unit/unit1397.c
+++ b/tests/unit/unit1397.c
@@ -14,6 +14,10 @@ static void unit_stop( void )
UNITTEST_START
+/* only these backends define the tested functions */
+#if defined(USE_SSLEAY) || defined(USE_AXTLS) || defined(USE_QSOSSL) || \
+ defined(USE_GSKIT)
+
/* here you start doing things and checking that the results are good */
fail_unless( Curl_cert_hostcheck("www.example.com", "www.example.com"), "good 1" );
@@ -41,6 +45,8 @@ fail_if( Curl_cert_hostcheck("*::3285:a9ff:fe46:b619", "fe80::3285:a9ff:fe46:b61
fail_unless( Curl_cert_hostcheck("fe80::3285:a9ff:fe46:b619", "fe80::3285:a9ff:fe46:b619"), "good 6" );
#endif
+#endif
+
/* you end the test code like this: */
UNITTEST_STOP