Skip to content

Commit

Permalink
Add test symlinking to root
Browse files Browse the repository at this point in the history
  • Loading branch information
patricoferris committed Apr 1, 2024
1 parent b224834 commit 9096a87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,12 +679,17 @@ Symlinking and sandboxing:
traceln "world.txt -> hello.txt: %s" (Path.load (cwd / "world.txt"));
try_symlink ~link_to:"hello.txt" (cwd / "world.txt");
try_symlink ~exists_ok:true ~link_to:"hello.txt" (cwd / "world.txt");
try_symlink ~link_to:"/" (cwd / "root");
try_read_dir (cwd / "root");;
+Eio.Io Fs Permission_denied _, creating symlink <cwd:../world.txt> -> hello.txt
+Eio.Io Fs Permission_denied _, creating symlink <cwd:/world.txt> -> hello.txt
+symlink <cwd:world.txt> -> "hello.txt"
+world.txt -> hello.txt: Hello World!
+Eio.Io Fs Already_exists _, creating symlink <cwd:world.txt> -> hello.txt
+symlink <cwd:world.txt> -> "hello.txt"
+symlink <cwd:root> -> "/"
+Eio.Io Fs Permission_denied _, reading directory <cwd:root>
- : unit = ()
```

Expand Down

0 comments on commit 9096a87

Please sign in to comment.