From 26857abe436f2059257554a1983c5ee2c8d2a276 Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Thu, 8 Sep 2011 20:58:39 -0400 Subject: [PATCH] Preserve thread values. This avoid problems with tests that are broken by changing environment, like the TR tests that implicitly rely on a specific printer. --- collects/tests/run-automated-tests.rkt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collects/tests/run-automated-tests.rkt b/collects/tests/run-automated-tests.rkt index 5615e8eacb..8e3d56d6d9 100755 --- a/collects/tests/run-automated-tests.rkt +++ b/collects/tests/run-automated-tests.rkt @@ -54,6 +54,7 @@ #:load? [load? #f] #:handler? [handler? #t] #:timeout [timeout 10] ; in minutes #:additional-modules [additional-modules '()]) + (define gloabl-state (current-preserved-thread-cell-values)) (define stderr (current-error-port)) (define (echo fmt . args) (flush-output (current-output-port)) @@ -92,7 +93,8 @@ (thunk)) (thunk))) (kill-thread timeout-thread) - (echo "no failures.")))) + (echo "no failures."))) + (current-preserved-thread-cell-values gloabl-state)) (all-tests)