File tree Expand file tree Collapse file tree
Clojure.Tests/clojure/test_clojure Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ static void Main(string[] args)
8989 Var . popThreadBindings ( ) ;
9090 try {
9191 outTW . Flush ( ) ;
92- outTW . Close ( ) ;
9392 }
9493 catch ( IOException e )
9594 {
Original file line number Diff line number Diff line change 171171 (should-not-reflect #(loop [k 5.0 ] (recur (clojure.test-clojure.compilation/primfn 0 ))))
172172
173173 (should-print-err-message #"(?s).*k is not matching primitive.*"
174- #(loop [k (clojure.test-clojure.compilation/primfn )] (recur :foo ))))
174+ #(loop [k (clojure.test-clojure.compilation/primfn )] (recur :foo ))))
175+
176+ ; ;;(deftest CLJ-1154-use-out-after-compile
177+ ; ;; ;; This test creates a dummy file to compile, sets up a dummy
178+ ; ;; ;; compiled output directory, and a dummy output stream, and
179+ ; ;; ;; verifies the stream is still usable after compiling.
180+ ; ;; (spit "test/dummy.clj" "(ns dummy)")
181+ ; ;; (try
182+ ; ;; (let [compile-path (System/getProperty "clojure.compile.path")
183+ ; ;; tmp (java.io.File. "tmp")
184+ ; ;; new-out (java.io.OutputStreamWriter. (java.io.ByteArrayOutputStream.))]
185+ ; ;; (binding [clojure.core/*out* new-out]
186+ ; ;; (try
187+ ; ;; (.mkdir tmp)
188+ ; ;; (System/setProperty "clojure.compile.path" "tmp")
189+ ; ;; (clojure.lang.Compile/main (into-array ["dummy"]))
190+ ; ;; (println "this should still work without throwing an exception" )
191+ ; ;; (finally
192+ ; ;; (if compile-path
193+ ; ;; (System/setProperty "clojure.compile.path" compile-path)
194+ ; ;; (System/clearProperty "clojure.compile.path"))
195+ ; ;; (doseq [f (.listFiles tmp)]
196+ ; ;; (.delete f))
197+ ; ;; (.delete tmp)))))
198+ ; ;; (finally
199+ ; ;; (doseq [f (.listFiles (java.io.File. "test"))
200+ ; ;; :when (re-find #"dummy.clj" (str f))]
201+ ; ;; (.delete f)))))
You can’t perform that action at this time.
0 commit comments