Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
Add test to reproduce #112 (seems not to occur on OS X so I want to m…
Browse files Browse the repository at this point in the history
…ake sure at least travis catches it)
  • Loading branch information
flosell committed Jun 11, 2016
1 parent 57e0f9a commit c3c0404
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/clj/lambdacd/util_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,16 @@
(is (= "some-value-from-function" (with-temp d (throw-if-not-exists d))))

(is (not (fs/exists? (fs/file d "somefile"))))
(is (not (fs/exists? d))))))
(is (not (fs/exists? d)))))
(testing "that it can deal with circular symlinks"
(let [f (create-temp-dir)]
(is (= "some-value-from-function"
(with-temp f (let [link-parent (io/file f "foo" "bar")]
(fs/mkdirs link-parent)
(fs/sym-link (io/file link-parent "link-to-the-start") f)
"some-value-from-function"
))))
(is (not (fs/exists? f))))))


(deftest json-test
Expand Down

0 comments on commit c3c0404

Please sign in to comment.