The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Check if windows has_symlink for tests (#771)

Symlinking is privileged operation on Windows, so we check if the running user can make symlinks before running tests that require them.

authored by

Onah_Anthony and committed by
GitHub
67fe8863 561f0d84

+4
+4
vendor/opam/eio/lib_eio_windows/test/test_fs.ml
··· 158 158 Unix.mkdir "another" 0o700; 159 159 print_endline @@ Unix.realpath "to-subdir" |} 160 160 *) 161 + if not (Unix.has_symlink ()) then 162 + Printf.printf "Skipping test_symlink on systems that don't support symlinks.\n" 163 + else 161 164 let cwd = Eio.Stdenv.cwd env in 162 165 try_mkdir (cwd / "sandbox"); 163 166 Unix.symlink ~to_dir:true ".." "sandbox\\to-root"; ··· 277 280 "unlink", `Quick, test_unlink env; 278 281 "failing-unlink", `Quick, try_failing_unlink env; 279 282 "rmdir", `Quick, test_remove_dir env; 283 + "mkdirs", `Quick, test_mkdirs env; 280 284 ]