[EMAIL PROTECTED] wrote: > Author: pquerna > Date: Sat Dec 2 22:56:14 2006 > New Revision: 481731 > > URL: http://svn.apache.org/viewvc?view=rev&rev=481731 > Log: > Add a test case for formating an apr_status_t with %pm that seems to always > be failing for me on darwin. > > Modified: > apr/apr/trunk/test/teststr.c > > Modified: apr/apr/trunk/test/teststr.c > URL: > http://svn.apache.org/viewvc/apr/apr/trunk/test/teststr.c?view=diff&rev=481731&r1=481730&r2=481731 > ============================================================================== > --- apr/apr/trunk/test/teststr.c (original) > +++ apr/apr/trunk/test/teststr.c Sat Dec 2 22:56:14 2006 > @@ -120,6 +120,18 @@ > ABTS_INT_EQUAL(tc, 6, rv); > } > > +static void snprintf_status_t(abts_case *tc, void *data) > +{ > + char buf[128]; > + int rv; > + apr_status_t t = APR_ENOPOOL; > + > + rv = apr_snprintf(buf, sizeof buf, "%pm", t);
apr_lib.h: * %%pm takes an apr_status_t * and prints the appropriate error * string (from apr_strerror) corresponding to that error code. -- Davi Arnaut