Skip to content

Commit

Permalink
Fixed unit-tests on OS X with MacPorts
Browse files Browse the repository at this point in the history
fake_system#file_exists always returned false if tmpdir was None, but
fake_system#stat was missing this check.

Reported by Ilja Honkonen.
  • Loading branch information
talex5 committed Sep 4, 2015
1 parent 054b517 commit 7e58551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocaml/tests/fake_system.ml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ class fake_system tmpdir =
| Dir (mode, _items) -> Some (make_stat mode S_DIR)
| File (_mode, target) -> real_system#stat target
with Not_found ->
if hidden_subtree path then None
if tmpdir = None then None
else if hidden_subtree path then None
else real_system#stat (check_read path)
)

Expand Down

0 comments on commit 7e58551

Please sign in to comment.