Skip to content

Commit 35d7f66

Browse files
committed
Fix Sys.remove on directory on macOS
1 parent d5f1bc5 commit 35d7f66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sys/stm_tests.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ struct
277277
| Error (Sys_error s) ->
278278
(s = (p complete_path) ^ ": No such file or directory" && not (mem_model fs complete_path)) ||
279279
(s = (p complete_path) ^ ": Is a directory" && path_is_a_dir fs complete_path) ||
280+
(s = (p complete_path) ^ ": Operation not permitted" && path_is_a_dir fs complete_path) ||
280281
(s = (p complete_path) ^ ": Not a directory" && not (path_is_a_dir fs path))
281282
| Error _ -> false
282283
)

0 commit comments

Comments
 (0)