Skip to content

Commit

Permalink
squash: skip negative tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Jul 11, 2022
1 parent 221016e commit 3d0d40d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/parallel/test-fs-stat-date.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ async function runTest(atime, mtime, margin = 0) {

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

0 comments on commit 3d0d40d

Please sign in to comment.