Page MenuHomeFreeBSD

lib/msun/tests: Skip fenv_test:masking if exceptions can't be trapped
ClosedPublic

Authored by arichardson on Mar 5 2021, 4:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 8, 3:21 AM
Unknown Object (File)
Thu, Mar 6, 4:01 AM
Unknown Object (File)
Sat, Mar 1, 7:42 PM
Unknown Object (File)
Feb 23 2025, 10:17 PM
Unknown Object (File)
Jan 30 2025, 6:25 AM
Unknown Object (File)
Jan 29 2025, 1:24 AM
Unknown Object (File)
Jan 25 2025, 7:45 AM
Unknown Object (File)
Jan 24 2025, 7:19 PM
Subscribers

Details

Summary

Some CPUs (e.g. AArch64 QEMU) cannot trap on floating point exceptions and
therefore ignore the writes to the floating point control register inside
feenableexcept(). If no exceptions are enabled after
feenableexcept(FE_ALL_EXCEPT), we can assume that the CPU does not
support exceptions and we can then skip the test.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable