summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStuart Halloway <stu@thinkrelevance.com>2010-05-13 22:41:59 -0400
committerStuart Halloway <stu@thinkrelevance.com>2010-05-20 21:25:19 -0400
commit56dd2cd8714e30d85a215d520b0248f4783fbbbd (patch)
tree5a87684d6df05e6ac15cc7a604a58da995329688 /test
parent65b7e698c508658b6e2af1dedca999649c0f1f56 (diff)
more code review of #311
- better docstring - so long dangerous recursive delete, we hardly knew ye Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Diffstat (limited to 'test')
-rw-r--r--test/clojure/test_clojure/java/io.clj7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/clojure/test_clojure/java/io.clj b/test/clojure/test_clojure/java/io.clj
index 1841ada0..d193942d 100644
--- a/test/clojure/test_clojure/java/io.clj
+++ b/test/clojure/test_clojure/java/io.clj
@@ -178,8 +178,11 @@
(deftest test-make-parents
(let [tmp (System/getProperty "java.io.tmpdir")]
- (delete-file-recursively (file tmp "test-make-parents") :silently)
+ (delete-file (file tmp "test-make-parents" "child" "grandchild") :silently)
+ (delete-file (file tmp "test-make-parents" "child") :silently)
+ (delete-file (file tmp "test-make-parents") :silently)
(make-parents tmp "test-make-parents" "child" "grandchild")
(is (.isDirectory (file tmp "test-make-parents" "child")))
(is (not (.isDirectory (file tmp "test-make-parents" "child" "grandchild"))))
- (delete-file-recursively (file tmp "test-make-parents"))))
+ (delete-file (file tmp "test-make-parents" "child"))
+ (delete-file (file tmp "test-make-parents"))))