[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.3-183-ga2b62
From: |
Andy Wingo |
Subject: |
[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.3-183-ga2b62b4 |
Date: |
Wed, 25 Jan 2012 18:04:26 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".
http://git.savannah.gnu.org/cgit/guile.git/commit/?id=a2b62b48ab92ed1b5e5e0bcc292498abba3154cb
The branch, stable-2.0 has been updated
via a2b62b48ab92ed1b5e5e0bcc292498abba3154cb (commit)
from e5cf97290c3d2dcda0eca02f9fcf4020452bca42 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a2b62b48ab92ed1b5e5e0bcc292498abba3154cb
Author: Andy Wingo <address@hidden>
Date: Wed Jan 25 19:03:29 2012 +0100
fix "lexical vars are collectable" test
* test-suite/tests/gc.test ("gc"): Fix "lexical vars are collectable"
test. (Previously, the binding was getting inlined, so we weren't
testing what we meant to test. Besides that, the value was a
constant, not a closure, so it wasn't collectable in the first place!)
-----------------------------------------------------------------------
Summary of changes:
test-suite/tests/gc.test | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/test-suite/tests/gc.test b/test-suite/tests/gc.test
index 25dc577..527bef5 100644
--- a/test-suite/tests/gc.test
+++ b/test-suite/tests/gc.test
@@ -1,6 +1,6 @@
;;;; gc.test --- test guile's garbage collection -*- scheme -*-
;;;; Copyright (C) 2000, 2001, 2004, 2006, 2007, 2008, 2009,
-;;;; 2011 Free Software Foundation, Inc.
+;;;; 2011, 2012 Free Software Foundation, Inc.
;;;;
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
@@ -87,11 +87,14 @@
total)))
(pass-if "Lexical vars are collectable"
- (procedure?
+ (list?
(compile
'(begin
(define guardian (make-guardian))
- (let ((f (lambda () (display "test\n"))))
+ (let ((f (list 'foo)))
+ ;; Introduce a useless second reference to f to prevent the
+ ;; optimizer from propagating the lexical binding.
+ f
(guardian f))
(gc)(gc)(gc)
(guardian))))))
hooks/post-receive
--
GNU Guile
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.3-183-ga2b62b4,
Andy Wingo <=