diff UnitTests/Versions.cpp @ 29:042ac60f5bf9

simplified build of curl
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 29 Aug 2012 15:27:13 +0200
parents 3a584803783e
children 88f537ca35a5
line wrap: on
line diff
--- a/UnitTests/Versions.cpp	Wed Aug 29 11:07:55 2012 +0200
+++ b/UnitTests/Versions.cpp	Wed Aug 29 15:27:13 2012 +0200
@@ -50,3 +50,18 @@
   ASSERT_STREQ("1.5.12", PNG_LIBPNG_VER_STRING);
 }
 #endif
+
+
+TEST(Versions, CurlSsl)
+{
+  curl_version_info_data * vinfo = curl_version_info(CURLVERSION_NOW);
+
+  // Check that SSL support is enabled when required
+  bool curlSupportsSsl = vinfo->features & CURL_VERSION_SSL;
+
+#if PALANTIR_SSL_ENABLED == 0
+  ASSERT_FALSE(curlSupportsSsl);
+#else
+  ASSERT_TRUE(curlSupportsSsl);
+#endif
+}