Skip to content

Commit

Permalink
[sqwsh] exclude failing systems + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Jun 1, 2017
1 parent 342c2e2 commit 7c5b0da
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/parallel/test-fs-utimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,15 @@ common.refreshTmpDir();
const path = `${common.tmpDir}/test-utimes-precision`;
fs.writeFileSync(path, '');

// test Y2K38 for all platforms
const Y2K38_mtime = 2**31;
fs.utimesSync(path, Y2K38_mtime, Y2K38_mtime);
const Y2K38_stats = fs.statSync(path);
assert.strictEqual(Y2K38_mtime, Y2K38_stats.mtime.getTime() / 1000);
// test Y2K38 for all platforms [except 'arm', and 'smartOS']
if (process.arch !== 'arm' && process.platform !== 'sunos') {
// because 2 ** 31 doesn't look right
// eslint-disable-next-line space-infix-ops
const Y2K38_mtime = 2**31;
fs.utimesSync(path, Y2K38_mtime, Y2K38_mtime);
const Y2K38_stats = fs.statSync(path);
assert.strictEqual(Y2K38_mtime, Y2K38_stats.mtime.getTime() / 1000);
}

if (common.isWindows) {
// this value would get converted to (double)1713037251359.9998
Expand Down

0 comments on commit 7c5b0da

Please sign in to comment.