fix test that was supposed to be Windows-specific
This commit is contained in:
parent
0606228959
commit
e32e1383fe
|
@ -120,9 +120,10 @@
|
|||
(test 789/1000 - (date*->seconds d) (date->seconds d)))
|
||||
|
||||
;; Check some overflow handling on Windows:
|
||||
(let ([out-of-range (lambda (exn) (regexp-match? #rx"out-of-range" (exn-message exn)))])
|
||||
(when (eq? (system-type) 'windows)
|
||||
(let ([out-of-range (lambda (exn) (regexp-match? #rx"out-of-range" (exn-message exn)))])
|
||||
(err/rt-test (seconds->date (expt 2 40)) out-of-range)
|
||||
(err/rt-test (seconds->date (expt 2 50)) out-of-range)
|
||||
(err/rt-test (seconds->date (expt 2 60)) out-of-range))
|
||||
(err/rt-test (seconds->date (expt 2 60)) out-of-range)))
|
||||
|
||||
(report-errs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user