[rtems commit] psxfenv01: Check FE_DIVBYZERO define

Sebastian Huber sebh at rtems.org
Tue Nov 12 08:35:47 UTC 2019


Module:    rtems
Branch:    master
Commit:    224ceb0b952485698b694b7849ab620bad84068d
Changeset: http://git.rtems.org/rtems/commit/?id=224ceb0b952485698b694b7849ab620bad84068d

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 12 06:56:40 2019 +0100

psxfenv01: Check FE_DIVBYZERO define

---

 testsuites/psxtests/psxfenv01/init.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testsuites/psxtests/psxfenv01/init.c b/testsuites/psxtests/psxfenv01/init.c
index fcdf3ae..12e0722 100644
--- a/testsuites/psxtests/psxfenv01/init.c
+++ b/testsuites/psxtests/psxfenv01/init.c
@@ -94,8 +94,10 @@ rtems_task Init(rtems_task_argument ignored)
 
     fegetexceptflag(&excepts,FE_ALL_EXCEPT);
 
+#ifdef FE_DIVBYZERO
     r = feraiseexcept(FE_DIVBYZERO);
     rtems_test_assert( fetestexcept( FE_DIVBYZERO ) );
+#endif
 
     /* Test 'FE_INEXACT' */
     a = 10.0;



More information about the vc mailing list