Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
3065:b89a4288d605 | 3068:ad37c21ec4db |
---|---|
45 #include <lua.h> | 45 #include <lua.h> |
46 #include <jpeglib.h> | 46 #include <jpeglib.h> |
47 #include <iconv.h> | 47 #include <iconv.h> |
48 | 48 |
49 #if ORTHANC_ENABLE_SSL == 1 | 49 #if ORTHANC_ENABLE_SSL == 1 |
50 #include <openssl/opensslv.h> | 50 # include <openssl/opensslv.h> |
51 #endif | |
52 | |
53 #if ORTHANC_ENABLE_CIVETWEB == 1 | |
54 # include <civetweb.h> | |
51 #endif | 55 #endif |
52 | 56 |
53 | 57 |
54 TEST(Versions, Zlib) | 58 TEST(Versions, Zlib) |
55 { | 59 { |
171 #else | 175 #else |
172 # error Macro ORTHANC_LEGACY_JSONCPP should be set | 176 # error Macro ORTHANC_LEGACY_JSONCPP should be set |
173 #endif | 177 #endif |
174 } | 178 } |
175 | 179 |
180 | |
181 #if ORTHANC_ENABLE_CIVETWEB == 1 | |
182 TEST(Version, Civetweb) | |
183 { | |
184 ASSERT_EQ(1, CIVETWEB_VERSION_MAJOR); | |
185 ASSERT_EQ(11, CIVETWEB_VERSION_MINOR); | |
186 ASSERT_EQ(0, CIVETWEB_VERSION_PATCH); | |
187 } | |
176 #endif | 188 #endif |
189 | |
190 | |
191 #endif | |
192 | |
193 |