Skip to content

Commit

Permalink
Fix Sys.remove on directory on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jmid committed May 8, 2023
1 parent d480244 commit 4b43eb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sys/stm_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ struct
| Error (Sys_error s) ->
(s = (p complete_path) ^ ": No such file or directory" && not (mem_model fs complete_path)) ||
(s = (p complete_path) ^ ": Is a directory" && path_is_a_dir fs complete_path) ||
(s = (p complete_path) ^ ": Operation not permitted" && path_is_a_dir fs complete_path) ||
(s = (p complete_path) ^ ": Not a directory" && not (path_is_a_dir fs path))
| Error _ -> false
)
Expand Down

0 comments on commit 4b43eb4

Please sign in to comment.