svn commit: r274598 - head/contrib/netbsd-tests/lib/libm
Garrett Cooper
ngie at FreeBSD.org
Sun Nov 16 20:35:33 UTC 2014
Author: ngie
Date: Sun Nov 16 20:35:32 2014
New Revision: 274598
URL: https://svnweb.freebsd.org/changeset/base/274598
Log:
Reset errno to 0 before running scalbn to be sure that the tested errno is
valid
Sponsored by: EMC / Isilon Storage Division
Modified:
head/contrib/netbsd-tests/lib/libm/t_scalbn.c
Modified: head/contrib/netbsd-tests/lib/libm/t_scalbn.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libm/t_scalbn.c Sun Nov 16 20:34:46 2014 (r274597)
+++ head/contrib/netbsd-tests/lib/libm/t_scalbn.c Sun Nov 16 20:35:32 2014 (r274598)
@@ -81,6 +81,9 @@ ATF_TC_BODY(scalbn_val, tc)
double rv;
for (i = 0; i < tcnt; i++) {
+#ifdef __FreeBSD__
+ errno = 0;
+#endif
rv = scalbn(tests[i].inval, tests[i].exp);
ATF_CHECK_EQ_MSG(errno, tests[i].error,
"test %zu: errno %d instead of %d", i, errno,
More information about the svn-src-head
mailing list