httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject [multi-env] t/parsers.c test on Win32
Date Tue, 08 Feb 2005 07:06:35 GMT
With the current svn multi-env branch, on Win32, the
Parsers test of testall fails:

1) locate_default_parsers: expected pointer <00403740>,
   but was <10004270>

It doesn't matter in this failure of the test if I use just
one of any of URL_ENCTYPE, MFD_ENCTYPE, or MR_ENCTYPE.

I'm probably not understanding something here, but in
locate_default_parsers() of t/parsers.c, there is the
initial call
   apreq_register_parser(NULL, NULL);
In apreq_register_parser(const char *enctype, ...) of
src/apreq_parsers.c, however, early on there's
    if (enctype == NULL)
         return APR_EINVAL;
I may be missing something, but does that mean that
apreq_register_parser(NULL, NULL) effectively returns
without doing anything?

I tried the following for t/parsers.c:
======================================================
Index: t/parsers.c
===================================================================
--- t/parsers.c	(revision 152645)
+++ t/parsers.c	(working copy)
@@ -109,6 +109,10 @@

     /* initialize default-parser hash */
     apreq_register_parser(NULL, NULL);
+    apreq_register_parser(URL_ENCTYPE, apreq_parse_urlencoded);
+    apreq_register_parser(MFD_ENCTYPE, apreq_parse_multipart);
+    apreq_register_parser(MR_ENCTYPE, apreq_parse_multipart);
+

     f = apreq_parser(URL_ENCTYPE);
     CuAssertPtrNotNull(tc, f);
================================================================
and got all the tests to pass. However, I don't understand
why - I thought this was done in apreq_initialize(),
which is called by testall.c (and the status checked for
success).

-- 
best regards,
randy

Mime
View raw message