Page MenuHomeFreeBSD

msun tests: use standard floating-point exception flags on lrint and fenv tests
ClosedPublic

Authored by alfredo on Nov 12 2020, 11:50 PM.
Referenced Files
F169594123: D27202.id79494.diff
Wed, Sep 2, 12:41 AM
F169554253: D27202.id79722.diff
Tue, Sep 1, 9:58 PM
F169542832: D27202.id79723.diff
Tue, Sep 1, 9:11 PM
F169479152: D27202.id.diff
Tue, Sep 1, 3:46 PM
F169478014: D27202.id79490.diff
Tue, Sep 1, 3:41 PM
F169468942: D27202.diff
Tue, Sep 1, 3:07 PM
Unknown Object (File)
Mon, Aug 31, 12:39 AM
Unknown Object (File)
Sun, Aug 30, 5:58 PM
Subscribers

Details

Summary

Some platforms have additional architecture-specific floating-point flags. Msun test cases lrint and test_fegsetenv (fenv) expects only standard flags, so make sure to mask them appropriately.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alfredo retitled this revision from msun test: use standard floating-point exception flags on test_fegsetenv to msun tests: use standard floating-point exception flags on lrint and fenv tests.
alfredo edited the summary of this revision. (Show Details)
alfredo added reviewers: bdragon, luporl.

lrint has a similar case, so adding to same review

This revision is now accepted and ready to land.Nov 13 2020, 1:06 AM
ngie added inline comments.
lib/msun/tests/lrint_test.c
49–50 ↗(On Diff #79494)

Should this be defined in a more centralized place?

use ALL_STD_EXCEPT defined by "test-utils.h"

This revision now requires review to proceed.Nov 18 2020, 7:15 PM
alfredo added inline comments.
lib/msun/tests/lrint_test.c
49–50 ↗(On Diff #79494)

Just found this is already defined by "test-utils.h", so let's use it and remove the definition from fenv_test.c as well. Thanks!

This revision was not accepted when it landed; it landed in state Needs Review.Nov 18 2020, 7:23 PM
This revision was automatically updated to reflect the committed changes.
alfredo marked an inline comment as done.