mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-22 20:42:03 -08:00
tests: improve without-fpe-traps
This commit is contained in:
parent
eddfe4009c
commit
e44e7877d9
1 changed files with 6 additions and 5 deletions
|
|
@ -11,11 +11,12 @@
|
|||
(suite 'ieee-fp)
|
||||
|
||||
(defmacro without-fpe-traps (&body body)
|
||||
`(unwind-protect
|
||||
(progn
|
||||
(si:trap-fpe 'last nil)
|
||||
,@body)
|
||||
(si:trap-fpe 'last t)))
|
||||
`(let ((bits (si:trap-fpe 'cl:last t)))
|
||||
(unwind-protect
|
||||
(progn
|
||||
(si:trap-fpe t nil)
|
||||
,@body)
|
||||
(si:trap-fpe bits t))))
|
||||
|
||||
(test ieee-fp.0001.infinity-eql
|
||||
(without-fpe-traps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue