X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fgc.impure.lisp;h=ef4313af3ee7675540e14622758591aa39f4747a;hb=b14aefb22fd710673b1a1005add3c0425713d2a0;hp=cb9e3e7f7b50f9617439cb9eb850d01d1f3013bc;hpb=661bcd7d3e0bdc1966f3878fa71d322ffd5927a4;p=sbcl.git diff --git a/tests/gc.impure.lisp b/tests/gc.impure.lisp index cb9e3e7..ef4313a 100644 --- a/tests/gc.impure.lisp +++ b/tests/gc.impure.lisp @@ -85,10 +85,11 @@ (assert (eq :ok (handler-case (dotimes (runs 100 :ok) - (let ((len (length - (with-output-to-string (string) - (dotimes (i 1000000) - (write-sequence "hi there!" string)))))) - (assert (eql len (* 1000000 (length "hi there!")))))) + (let* ((n (truncate (dynamic-space-size) 1200)) + (len (length + (with-output-to-string (string) + (dotimes (i n) + (write-sequence "hi there!" string)))))) + (assert (eql len (* n (length "hi there!")))))) (storage-condition () :oom))))))