]> git.ozlabs.org Git - ccan/blobdiff - ccan/rfc822/test/helper.h
rfc822: Allow test infrastructure to handle headers with minor errors
[ccan] / ccan / rfc822 / test / helper.h
index 7e1e67b2098f61bec18143b32bdabce379ac9c2e..f1bd9279d5012ce45bd11e23813f644a9ed7de8d 100644 (file)
@@ -1,2 +1,9 @@
+#include <ccan/tap/tap.h>
+
 void failtest_setup(int argc, char *argv[]);
 void allocation_failure_check(void);
+
+#define CHECK_HEADER_NUMTESTS  4
+void check_header(struct rfc822_msg *msg, struct rfc822_header *h,
+                 const char *name, const char *val,
+                 enum rfc822_header_errors experr, int crlf);