Skip to content

Commit 3f3f385

Browse files
committed
Update test
1 parent 734ed2c commit 3f3f385

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/stat/test_chmod.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void test() {
6666
memset(&s, 0, sizeof s);
6767
stat("file", &s);
6868
assert(s.st_mode == (0200 | S_IFREG));
69-
assert(s.st_ctime != lastctime);
69+
assert(s.st_ctime == lastctime);
7070

7171
//
7272
// fchmod a file
@@ -80,7 +80,7 @@ void test() {
8080
memset(&s, 0, sizeof s);
8181
stat("file", &s);
8282
assert(s.st_mode == (0100 | S_IFREG));
83-
assert(s.st_ctime != lastctime);
83+
assert(s.st_ctime == lastctime);
8484

8585

8686
//
@@ -94,7 +94,7 @@ void test() {
9494
memset(&s, 0, sizeof s);
9595
stat("otherfile", &s);
9696
assert(s.st_mode == (0100 | S_IFREG));
97-
assert(s.st_ctime != lastctime);
97+
assert(s.st_ctime == lastctime);
9898

9999
//
100100
// chmod a folder
@@ -111,7 +111,7 @@ void test() {
111111
memset(&s, 0, sizeof s);
112112
stat("folder", &s);
113113
assert(s.st_mode == (0300 | S_IFDIR));
114-
assert(s.st_ctime != lastctime);
114+
assert(s.st_ctime == lastctime);
115115

116116
#ifndef WASMFS // TODO https://github.com/emscripten-core/emscripten/issues/15948
117117
//

0 commit comments

Comments
 (0)