chiark / gitweb /
Bring CGI docs pretty much up to date
[disorder] / lib / t-cookies.c
index 7fdde3272d58b3a94386720e21e039c64acecd90..c8ec504c9eb2bdb8a13c8142cc1136fe74e407e0 100644 (file)
  */
 #include "test.h"
 
-void test_cookies(void) {
+static void test_cookies(void) {
   struct cookiedata cd[1];
 
-  fprintf(stderr, "test_cookies\n");
-
   /* These are the examples from RFC2109 */
   insist(!parse_cookie("$Version=\"1\"; Customer=\"WILE_E_COYOTE\"; $Path=\"/acme\"", cd));
   insist(!strcmp(cd->version, "1"));
@@ -72,6 +70,8 @@ void test_cookies(void) {
   insist(cd->cookies[0].domain == 0);
 }
 
+TEST(cookies);
+
 /*
 Local Variables:
 c-basic-offset:2