httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Vanasco <apreq-dev-l...@2xlp.com>
Subject Error Building libapreq2.08
Date Fri, 13 Apr 2007 16:58:32 GMT
I encountered an error building libapreq2.08

I posted it on the mp list when I thought it was perl related, but  
the issue seems to be in the C code , so i'm reposting here.

I'm running osx 10.4.9


Error
====================
perl -MTest::Harness -e 'runtests(@ARGV)' version.t cookie.t params.t  
parsers.t error.t util.t
version....ok
cookie.....ok
params.....ok
parsers....ok
         3/542 skipped: skipping ELF-dependent tests (parsers.c:134)
error......ok
util.......FAILED tests 36-37
         Failed 2/89 tests, 97.75% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------ 
-------
util.t                    89    2   2.25%  36-37
3 subtests skipped.
Failed 1/6 test scripts, 83.33% okay. 2/747 subtests failed, 99.73%  
okay.
make[2]: *** [test] Error 255
make[1]: *** [test] Error 2
make: *** [library_test] Error 2
====================


Verbose error (  $export HARNESS_VERBOSE='1' )
====================
not ok 36 - apreq_decode(expect, &elen, src3, sizeof(src3) -1) ==  
APR_SUCCESS, as integers # at (util.c:107) test 5 in test_charset_divine
not ok 37 - apreq_charset_divine(expect, elen) ==  
APREQ_CHARSET_CP1252, as integers # at (util.c:109) test 6 in  
test_charset_divine


in util.c:
====================
static void test_charset_divine(dAT)
{
     apr_size_t elen;
     char src1[] = "%C3%80%E3%82%a2"; /* A_GRAVE KATAKANA_A as utf8 */
     char src2[] = "pound%A3";/* latin-1 */
     char src3[] = "euro%80";/* cp-1252 */
     char expect[6];

     AT_int_eq(apreq_decode(expect, &elen, src1, sizeof(src1) -1),
               APR_SUCCESS);

     AT_int_eq(apreq_charset_divine(expect, elen), APREQ_CHARSET_UTF8);

     AT_int_eq(apreq_decode(expect, &elen, src2, sizeof(src2) -1),
               APR_SUCCESS);

     AT_int_eq(apreq_charset_divine(expect, elen),  
APREQ_CHARSET_LATIN1);
     AT_int_eq(apreq_decode(expect, &elen, src3, sizeof(src3) -1),
               APR_SUCCESS);

     AT_int_eq(apreq_charset_divine(expect, elen),  
APREQ_CHARSET_CP1252);

}





// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



Mime
View raw message