diff --git a/compiler/tests-ocaml/lib-unix/common/append.ml b/compiler/tests-ocaml/lib-unix/common/append.ml index accb3d5968..c0190c9636 100644 --- a/compiler/tests-ocaml/lib-unix/common/append.ml +++ b/compiler/tests-ocaml/lib-unix/common/append.ml @@ -27,6 +27,7 @@ let append () = Unix.close fd let () = + (try Unix.unlink "append.txt" with Unix.(Unix_error (ENOENT, _, _)) -> ()); append (); append (); let fd = Unix.openfile "append.txt" [ Unix.O_RDONLY ] 0o644 in