httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: [apreq-2] make test fails
Date Fri, 02 Jul 2004 01:45:36 GMT
Randy Kobes <randy@theoryx5.uwinnipeg.ca> writes:

> With the current cvs, on Win32 I get a failure in the
> top-level 'make test' (not the perl glue):

[...]

> Failed tests in Param:
> 1) params_as: expected
> ---->
> 1, 2
> <----
> but saw
> ---->
> 1, 2, 1, 2, 1, 2
> <----

Just committed this patch:

Index: t/params.c
===================================================================
RCS file: /home/cvs/httpd-apreq-2/t/params.c,v
retrieving revision 1.12
diff -u -r1.12 params.c
--- t/params.c  28 Jun 2004 04:50:14 -0000      1.12
+++ t/params.c  2 Jul 2004 01:44:14 -0000
@@ -56,6 +56,9 @@
 static void params_as(CuTest *tc)
 {
     const char *val;
+    apr_array_header_t *arr;
+    arr = apreq_params_as_array(p,r,"a");
+    CuAssertIntEquals(tc,2,arr->nelts);
     val = apreq_params_as_string(p,r,"a",APREQ_JOIN_AS_IS);
     CuAssertStrEquals(tc,"1, 2", val);
 }

What do you see now?

-- 
Joe Schaefer


Mime
View raw message