-(let ((exhaust-count 0)
- (recurse-count 0))
- (block nil
- (handler-bind ((storage-condition (lambda (c)
- (declare (ignore c))
- (if (= *count* (incf exhaust-count))
- (return)
- (invoke-restart (find-restart 'ok))))))
- (loop
- (with-simple-restart (ok "ok")
- (incf recurse-count)
- (recurse)))))
- (assert (= exhaust-count recurse-count *count*)))
+(with-test (:name (:exhaust :restarts)
+ :broken-on '(and :sunos :x86-64)
+ :skipped-on :win32)
+ (let ((exhaust-count 0)
+ (recurse-count 0))
+ (block nil
+ (handler-bind ((storage-condition (lambda (c)
+ (declare (ignore c))
+ (if (= *count* (incf exhaust-count))
+ (return)
+ (invoke-restart (find-restart 'ok))))))
+ (loop
+ (with-simple-restart (ok "ok")
+ (incf recurse-count)
+ (recurse)))))
+ (assert (= exhaust-count recurse-count *count*))))