Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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 @@ -146,6 +146,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 @@ -157,6 +160,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

assert(stat("", &s) == -1);
Expand Down
2 changes: 1 addition & 1 deletion test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5529,7 +5529,7 @@ def test_stat_chmod(self):
nodefs = '-DNODEFS' in self.emcc_args or '-DNODERAWFS' in self.emcc_args
if nodefs and WINDOWS:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we use to run this test with -DNODEFS on windows, but not after this change?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops, sorry I just saw that this change includes a change to the test (which presumably makes it no longer compatible with windows+nodefs). lgtm.

self.skipTest('mode bits work differently on windows')
if self.get_setting('WASMFS') and self.get_setting('NODERAWFS'):
if nodefs and self.get_setting('WASMFS'):
self.skipTest('test requires symlink creation which currently missing from wasmfs+noderawfs')
self.do_runf('stat/test_chmod.c', 'success')

Expand Down
Loading