Update to 7.40.1
[platform/upstream/curl.git] / tests / unit / unit1397.c
index 7e508a8..fd60c23 100644 (file)
@@ -14,6 +14,9 @@ static void unit_stop( void )
 
 UNITTEST_START
 
+/* only these backends define the tested functions */
+#if defined(USE_SSLEAY) || defined(USE_AXTLS) || 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 +44,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