Browse Source

Check version of "check" unit test framework

bel 8 years ago
parent
commit
373dd46210
1 changed files with 9 additions and 0 deletions
  1. 9 0
      test/civetweb_check.h

+ 9 - 0
test/civetweb_check.h

@@ -35,7 +35,16 @@
 #pragma warning(disable : 4127)
 #endif
 #include <stdint.h>
+
+/* All unit tests use the "check" framework.
+ * Download from https://libcheck.github.io/check/
+ */
 #include "check.h"
+
+#if (CHECK_MINOR_VERSION < 11)
+#error "CivetWeb unit tests require at least check 0.11.0"
+#endif
+
 #ifdef __clang__
 #pragma clang diagnostic pop
 #endif