Reset errno to 0 before running scalbn to be sure that the tested errno is
valid Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
66152388f6
commit
790973021f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274598
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user