Skip to content
Merged
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
8 changes: 4 additions & 4 deletions test/stat/test_chmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void test() {
memset(&s, 0, sizeof s);
stat("file", &s);
assert(s.st_mode == (0200 | S_IFREG));
assert(s.st_ctime != lastctime);
assert(s.st_ctime == lastctime);

//
// fchmod a file
Expand All @@ -80,7 +80,7 @@ void test() {
memset(&s, 0, sizeof s);
stat("file", &s);
assert(s.st_mode == (0100 | S_IFREG));
assert(s.st_ctime != lastctime);
assert(s.st_ctime == lastctime);


//
Expand All @@ -94,7 +94,7 @@ void test() {
memset(&s, 0, sizeof s);
stat("otherfile", &s);
assert(s.st_mode == (0100 | S_IFREG));
assert(s.st_ctime != lastctime);
assert(s.st_ctime == lastctime);

//
// chmod a folder
Expand All @@ -111,7 +111,7 @@ void test() {
memset(&s, 0, sizeof s);
stat("folder", &s);
assert(s.st_mode == (0300 | S_IFDIR));
assert(s.st_ctime != lastctime);
assert(s.st_ctime == lastctime);

#ifndef WASMFS // TODO https://github.com/emscripten-core/emscripten/issues/15948
//
Expand Down