Skip to content

Commit 3d0d40d

Browse files
committed
squash: skip negative tests on windows
1 parent 221016e commit 3d0d40d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/parallel/test-fs-stat-date.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ async function runTest(atime, mtime, margin = 0) {
6363

6464
// Too high/low numbers produce too different results on different platforms
6565
{
66-
// TODO(LiviaMedeiros): investigate why on FreeBSD stat reports outdated time
67-
if (!common.isFreeBSD) {
66+
// TODO(LiviaMedeiros): investigate outdated stat time on FreeBSD.
67+
// On Windows, filetime is stored and handled differently. Supporting dates
68+
// after Y2038 is preferred over supporting dates before 1970-01-01.
69+
if (!common.isFreeBSD && !common.isWindows) {
6870
await runTest(-40691, -355, 1); // Potential precision loss on 32bit
6971
await runTest(-355, -40691, 1); // Potential precision loss on 32bit
7072
await runTest(-1, -1);

0 commit comments

Comments
 (0)