Skip to content

Commit ca896f6

Browse files
committed
patch dir-to-dir Sys.rename MingW regression
1 parent 98a46b8 commit ca896f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sys/stm_tests.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ struct
327327
| Error (Sys_error s) ->
328328
(* temporary workaround for dir-to-empty-target-dir https://github.com/ocaml/ocaml/issues/12073 *)
329329
(s = "Permission denied" && Sys.win32 && path_is_a_dir fs old_path && path_is_an_empty_dir fs new_path) ||
330+
(* temporary workaround for identity regression renaming under MingW *)
331+
(s = "No such file or directory" && Sys.win32 && old_path = new_path && path_is_an_empty_dir fs new_path) ||
330332
(s = "No such file or directory" &&
331333
not (Model.mem fs old_path) || List.exists (fun pref -> not (path_is_a_dir fs pref)) (path_prefixes new_path)) ||
332334
(s = "Invalid argument" && is_true_prefix old_path new_path) ||

0 commit comments

Comments
 (0)