HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8ed3de
)
Add test checking whether fluids are GC'd.
author
Ludovic Courtès
<ludo@gnu.org>
Tue, 2 Mar 2010 23:36:41 +0000
(
00:36
+0100)
committer
Ludovic Courtès
<ludo@gnu.org>
Tue, 2 Mar 2010 23:36:41 +0000
(
00:36
+0100)
* test-suite/tests/fluids.test ("fluids are GC'd"): New test.
test-suite/tests/fluids.test
patch
|
blob
|
blame
|
history
diff --git
a/test-suite/tests/fluids.test
b/test-suite/tests/fluids.test
index
f00fdc4
..
51353fa
100644
(file)
--- a/
test-suite/tests/fluids.test
+++ b/
test-suite/tests/fluids.test
@@
-55,3
+55,15
@@
(a 2))
(eqv? (fluid-ref a) 2))
(eqv? (fluid-ref a) #f))))
+
+(pass-if "fluids are GC'd"
+
+ (let ((g (make-guardian)))
+ (g (make-fluid))
+ (let loop ((i 1000))
+ (and (> i 0)
+ (begin
+ (make-fluid)
+ (loop (1- i)))))
+ (gc)
+ (fluid? (g))))