Skip to content

Commit

Permalink
chmod test: fix for fchmodat2 test_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
sidkshatriya authored and rocallahan committed Jul 2, 2024
1 parent 5170a31 commit 9c9bec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/chmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main(void) {
test_assert(0 == fchmod(fd, 0200));
test_assert(0 == access(file_path, W_OK));
test_assert(0 == syscall(RR_fchmodat, AT_FDCWD, file_path, 0400));
test_assert(0 == syscall(RR_fchmodat2, AT_FDCWD, file_path, 0400, 0 || errno == ENOSYS));
test_assert(0 == syscall(RR_fchmodat2, AT_FDCWD, file_path, 0400, 0) || errno == ENOSYS);
test_assert(0 == access(file_path, R_OK));
test_assert(0 == faccessat(AT_FDCWD, file_path, R_OK, AT_SYMLINK_NOFOLLOW) || errno == ENOSYS);
test_assert(0 == syscall(RR_faccessat2, AT_FDCWD, file_path, R_OK, AT_SYMLINK_NOFOLLOW) || errno == ENOSYS);
Expand Down

0 comments on commit 9c9bec0

Please sign in to comment.