X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fgc.impure.lisp;h=ef4313af3ee7675540e14622758591aa39f4747a;hb=7fccd3e92289bf3a7cd04bbbb92657aa3ad4808f;hp=d21d14a47772b0662195395750eff2d16f70bebe;hpb=31103f174118c5e30087b26447cf33515627f9c4;p=sbcl.git diff --git a/tests/gc.impure.lisp b/tests/gc.impure.lisp index d21d14a..ef4313a 100644 --- a/tests/gc.impure.lisp +++ b/tests/gc.impure.lisp @@ -56,7 +56,8 @@ (with-test (:name :bug-529014 :skipped-on '(not :gencgc)) (loop for i from 0 to sb-vm:+pseudo-static-generation+ do (assert (= (sb-ext:generation-bytes-consed-between-gcs i) - (sb-ext:bytes-consed-between-gcs))) + (truncate (sb-ext:bytes-consed-between-gcs) + sb-vm:+highest-normal-generation+))) ;; FIXME: These parameters are a) tunable in the source and b) ;; duplicated multiple times there and now here. It would be good to ;; OAOO-ify them (probably to src/compiler/generic/params.lisp). @@ -84,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))))))