mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Reset errno in :scalbnf_val and :scalbnl_val before running the tests so the
tested errno isn't stale This was needed in order for the test to pass on amd64 with stable/10 MFC after: 3 days
This commit is contained in:
parent
67009184e3
commit
8fe9679fd6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276521
|
@ -225,6 +225,9 @@ ATF_TC_BODY(scalbnf_val, tc)
|
|||
double rv;
|
||||
|
||||
for (i = 0; i < tcnt; i++) {
|
||||
#ifdef __FreeBSD__
|
||||
errno = 0;
|
||||
#endif
|
||||
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,
|
||||
|
@ -369,6 +372,9 @@ ATF_TC_BODY(scalbnl_val, tc)
|
|||
long double rv;
|
||||
|
||||
for (i = 0; i < tcnt; i++) {
|
||||
#ifdef __FreeBSD__
|
||||
errno = 0;
|
||||
#endif
|
||||
rv = scalbnl(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 a new issue