summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-12 06:56:40 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-12 08:50:01 +0100
commit224ceb0b952485698b694b7849ab620bad84068d (patch)
treef8b761c86217a7220662bceab62bb9fa92c644e6
parent94584f17ab949cc44d66ff66e7e23744b21a4416 (diff)
downloadrtems-224ceb0b952485698b694b7849ab620bad84068d.tar.bz2
psxfenv01: Check FE_DIVBYZERO define
-rw-r--r--testsuites/psxtests/psxfenv01/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxfenv01/init.c b/testsuites/psxtests/psxfenv01/init.c
index fcdf3aeb67..12e0722669 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;