Skip to content

[FS] Run test_chmod in nodefs. NFC #23230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/stat/test_chmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ void test() {
lstat("file-link", &s);
assert(s.st_mode == link_mode);

// TODO: lchmod is not supported in NODEFS but it chmods the link target
// instead of raising an error. Will fix in a follow up to #23058.
#ifndef NODEFS
//
// chmod the actual symlink
//
Expand All @@ -148,6 +151,7 @@ void test() {
// make sure the file it references didn't change
stat("file-link", &s);
assert(s.st_mode == (S_IRUSR | S_IFREG));
#endif
#endif // WASMFS

puts("success");
Expand Down
2 changes: 1 addition & 1 deletion test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5524,7 +5524,7 @@ def test_fstatat(self):

@crossplatform
@also_with_wasmfs
@also_with_noderawfs
@also_with_nodefs_both
def test_stat_chmod(self):
if self.get_setting('NODERAWFS') and WINDOWS:
self.skipTest('mode bits work differently on windows')
Expand Down
Loading