Re: svn commit: r276521 - head/contrib/netbsd-tests/lib/libm

2015-01-05 Thread Bruce Evans
On Sun, 4 Jan 2015, Garrett Cooper wrote: On Jan 2, 2015, at 0:03, Bruce Evans wrote: rv = scalbnf(tests[i].inval, tests[i].exp); ATF_CHECK_EQ_MSG(errno, tests[i].error, "test %zu: errno %d instead of %d", i, errno, The tests might set errn

Re: svn commit: r276521 - head/contrib/netbsd-tests/lib/libm

2015-01-04 Thread Garrett Cooper
On Jan 2, 2015, at 0:03, Bruce Evans wrote: > On Fri, 2 Jan 2015, Garrett Cooper wrote: > >> Log: >> Reset errno in :scalbnf_val and :scalbnl_val before running the tests so the >> tested errno isn't stale > > It is a bug to even test errno. No function in libm accesses errno. I’ll have to lo

Re: svn commit: r276521 - head/contrib/netbsd-tests/lib/libm

2015-01-02 Thread Bruce Evans
On Fri, 2 Jan 2015, Garrett Cooper wrote: Log: Reset errno in :scalbnf_val and :scalbnl_val before running the tests so the tested errno isn't stale It is a bug to even test errno. No function in libm accesses errno. This was needed in order for the test to pass on amd64 with stable/10