Skip to content

Commit 7c5b0da

Browse files
committed
[sqwsh] exclude failing systems + lint
1 parent 342c2e2 commit 7c5b0da

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/parallel/test-fs-utimes.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,15 @@ common.refreshTmpDir();
173173
const path = `${common.tmpDir}/test-utimes-precision`;
174174
fs.writeFileSync(path, '');
175175

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

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

0 commit comments

Comments
 (0)