Run optimizer tests in a throw-away namespace to reduce memory usage.

This commit is contained in:
Vincent St-Amour 2011-04-29 12:58:29 -04:00
parent 32a8da58cb
commit d9451ef4ab

View File

@ -42,9 +42,10 @@
(let ((log-string
(with-output-to-string
(lambda ()
(dynamic-require (build-path (current-load-relative-directory)
name)
#f)))))
(parameterize ([current-namespace (make-base-empty-namespace)])
(dynamic-require (build-path (current-load-relative-directory)
name)
#f))))))
;; have the log as an sexp, since that's what the expected log is
(with-input-from-string (string-append "(" log-string ")")
read))))