diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-11-12 06:56:40 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-11-12 08:50:01 +0100 |
commit | 224ceb0b952485698b694b7849ab620bad84068d (patch) | |
tree | f8b761c86217a7220662bceab62bb9fa92c644e6 /testsuites | |
parent | 94584f17ab949cc44d66ff66e7e23744b21a4416 (diff) |
psxfenv01: Check FE_DIVBYZERO define
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/psxtests/psxfenv01/init.c | 2 |
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; |