Skip to content

Commit 4da9263

Browse files
committed
test: skip negative utimes on Windows
Signed-off-by: GiHoon1123 <rlaejrqo465@naver.com>
1 parent 6cb3923 commit 4da9263

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎test/parallel/test-fs-utimes.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ const cases = [
8888
[asPath, new Date()],
8989
[asPath, 123456.789],
9090
[asPath, stats.mtime],
91-
...(common.isAIX ? [] : [[asPath, '123456', -1]]),
91+
// AIX rejects negative timestamps outright. Windows treats a negative
92+
// epoch as a wrapped 32-bit future date (see test-fs-utimes-y2K38.js),
93+
// a separate pre-existing platform decision this test isn't meant to
94+
// exercise.
95+
...(common.isAIX || common.isWindows ? [] : [[asPath, '123456', -1]]),
9296
[asPath, new Date('2017-04-08T17:59:38.008Z')],
9397
[asUrl, new Date()],
9498
];

0 commit comments

Comments
 (0)