瀏覽代碼

Check version of "check" unit test framework

bel 8 年之前
父節點
當前提交
373dd46210
共有 1 個文件被更改,包括 9 次插入0 次删除
  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