projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
661bcd7
)
tune bug-981106 test based on the heap size
author
Nikodemus Siivola
<nikodemus@sb-studio.net>
Sun, 29 Apr 2012 17:55:35 +0000
(20:55 +0300)
committer
Nikodemus Siivola
<nikodemus@sb-studio.net>
Sun, 29 Apr 2012 17:55:35 +0000
(20:55 +0300)
Fixes lp#983807.
tests/gc.impure.lisp
patch
|
blob
|
history
diff --git
a/tests/gc.impure.lisp
b/tests/gc.impure.lisp
index
cb9e3e7
..
ef4313a
100644
(file)
--- 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))))))