From 59526b5dc863d596f0a43a6265a9ebdc6f6d4432 Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Sat, 13 Feb 2010 09:30:10 -0800 Subject: [PATCH] Only shutdown agents in JVMs 1.6+. --- src/leiningen/test.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/leiningen/test.clj b/src/leiningen/test.clj index f696a5ee..19ea4b3d 100644 --- a/src/leiningen/test.clj +++ b/src/leiningen/test.clj @@ -21,7 +21,8 @@ each namespace and print an overall summary." (clojure.test/with-test-out (println "\n\n--------------------\nTotal:") (clojure.test/report summary#)) - (shutdown-agents)))) + (when-not (= "1.5" (System/getProperty "java.specification.version")) + (shutdown-agents))))) (defn test "Run the project's tests. Accept a list of namespaces for which to run all