From 26eac279d5d4ffbc24efc92fe75e15c7ec1c5877 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 24 May 2010 01:42:26 -0700 Subject: [PATCH] When re-loading unit-testing, unlink the previous copy so it will be garbage collected. --- tests/load.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/load.scm b/tests/load.scm index 0d3f9df4b..c615f9cec 100644 --- a/tests/load.scm +++ b/tests/load.scm @@ -2,7 +2,7 @@ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2009 Massachusetts Institute of Technology + 2006, 2007, 2008, 2009, 2010 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -27,4 +27,6 @@ USA. (environment-link-name environment '(runtime mit-macros) 'PARSE-DEFINE-FORM) (load (merge-pathnames "unit-testing" (current-load-pathname)) environment) + (if (environment-bound? system-global-environment 'RUN-UNIT-TESTS) + (unbind-variable system-global-environment 'RUN-UNIT-TESTS)) (environment-link-name system-global-environment environment 'RUN-UNIT-TESTS)) \ No newline at end of file -- 2.25.1