Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144401618
D27202.id79490.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
660 B
Referenced Files
None
Subscribers
None
D27202.id79490.diff
View Options
Index: lib/msun/tests/fenv_test.c
===================================================================
--- lib/msun/tests/fenv_test.c
+++ lib/msun/tests/fenv_test.c
@@ -373,7 +373,13 @@
assert(fegetround() == FE_TONEAREST);
assert(fesetenv(&env2) == 0);
- assert(fetestexcept(FE_ALL_EXCEPT) == excepts);
+
+ /*
+ * Some platforms like powerpc may set extra exception bits. Since
+ * only standard exceptions are tested, mask against ALL_STD_EXCEPT
+ */
+ assert((fetestexcept(FE_ALL_EXCEPT) & ALL_STD_EXCEPT) == excepts);
+
assert(fegetround() == FE_DOWNWARD);
assert(fesetenv(&env1) == 0);
assert(fetestexcept(FE_ALL_EXCEPT) == 0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 6:18 AM (8 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28546944
Default Alt Text
D27202.id79490.diff (660 B)
Attached To
Mode
D27202: msun tests: use standard floating-point exception flags on lrint and fenv tests
Attached
Detach File
Event Timeline
Log In to Comment