diff UnitTestsSources/VersionsTests.cpp @ 3068:ad37c21ec4db

fix compatibility with civetweb 1.11
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 29 Dec 2018 14:16:43 +0100
parents 4e43e67f8ecf
children 32596919d729
line wrap: on
line diff
--- a/UnitTestsSources/VersionsTests.cpp	Wed Dec 26 11:15:17 2018 +0100
+++ b/UnitTestsSources/VersionsTests.cpp	Sat Dec 29 14:16:43 2018 +0100
@@ -47,7 +47,11 @@
 #include <iconv.h>
 
 #if ORTHANC_ENABLE_SSL == 1
-#include <openssl/opensslv.h>
+#  include <openssl/opensslv.h>
+#endif
+
+#if ORTHANC_ENABLE_CIVETWEB == 1
+#  include <civetweb.h>
 #endif
 
 
@@ -173,4 +177,17 @@
 #endif
 }
 
+
+#if ORTHANC_ENABLE_CIVETWEB == 1
+TEST(Version, Civetweb)
+{
+  ASSERT_EQ(1, CIVETWEB_VERSION_MAJOR);
+  ASSERT_EQ(11, CIVETWEB_VERSION_MINOR);
+  ASSERT_EQ(0, CIVETWEB_VERSION_PATCH);
+}
 #endif
+
+
+#endif
+
+