Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: CVS commit: src/tests/lib/libc/stdio



> On Mon Nov 22 2010 at 08:47:58 +0000, matthew green wrote:
> > Module Name:        src
> > Committed By:       mrg
> > Date:               Mon Nov 22 08:47:58 UTC 2010
> > 
> > Modified Files:
> >     src/tests/lib/libc/stdio: t_format.c
> > 
> > Log Message:
> > vax doesn't have ieee fp, so, don't try to test ieee fp on vax.
> 
> Don't we have a more intent-clear macro for this?

nope. we have to invent one, and haven't yet.

.mrg.

> > Modified files:
> > 
> > Index: src/tests/lib/libc/stdio/t_format.c
> > diff -u src/tests/lib/libc/stdio/t_format.c:1.1 
> > src/tests/lib/libc/stdio/t_format.c:1.2
> > --- src/tests/lib/libc/stdio/t_format.c:1.1 Fri Nov 19 18:18:53 2010
> > +++ src/tests/lib/libc/stdio/t_format.c     Mon Nov 22 08:47:58 2010
> > @@ -46,11 +46,13 @@
> >     ATF_CHECK(sprintf(str, "%010f", 0.0) == 10);
> >     ATF_REQUIRE_STREQ(str, "000.000000");
> >  
> > +#ifndef __vax__
> >     /* PR/44113: printf(3) should ignore zero padding for nan/inf */
> >     ATF_CHECK(sprintf(str, "%010f", NAN) == 10);
> >     ATF_REQUIRE_STREQ(str, "       nan");
> >     ATF_CHECK(sprintf(str, "%010f", INFINITY) == 10);
> >     ATF_REQUIRE_STREQ(str, "       inf");
> > +#endif
> >  }
> >  
> >  ATF_TP_ADD_TCS(tp)
> > 
> 


Home | Main Index | Thread Index | Old Index