summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxfenv01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxfenv01/init.c')
-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;