mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
Kernel: sys$readlink() should return the number of bytes written out
This commit is contained in:
parent
a7b984ec49
commit
c64904a483
2 changed files with 6 additions and 1 deletions
|
@ -210,6 +210,11 @@ void test_unlink_symlink()
|
|||
perror("symlink");
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
char buffer[PATH_MAX];
|
||||
rc = readlink("/tmp/linky", buffer, sizeof(buffer));
|
||||
ASSERT(rc == strlen("/proc/2/foo") + 1);
|
||||
|
||||
rc = unlink("/tmp/linky");
|
||||
if (rc < 0) {
|
||||
perror("unlink");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue