You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Davi Arnaut <da...@haxent.com.br> on 2006/12/03 15:21:51 UTC
Re: svn commit: r481731 - /apr/apr/trunk/test/teststr.c
pquerna@apache.org 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
Re: svn commit: r481731 - /apr/apr/trunk/test/teststr.c
Posted by Joe Orton <jo...@redhat.com>.
On Sun, Dec 03, 2006 at 12:21:51PM -0200, Davi Arnaut wrote:
> pquerna@apache.org 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.
...
> apr_lib.h:
>
> * %%pm takes an apr_status_t * and prints the appropriate error
> * string (from apr_strerror) corresponding to that error code.
...and there is already a test case in testfmt.c :)
joe