Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! test: fix test-fs-utimes on…
Browse files Browse the repository at this point in the history
… non-Y2K38 file systems
  • Loading branch information
Trott committed Mar 17, 2021
1 parent 046d7a0 commit 9c8b1ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/parallel/test-fs-utimes-y2K38.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ if (!common.isWindows) {
const testFilePath = `${tmpdir.path}/y2k38-test`;
const testFileDate = '204001020304';
const { spawnSync } = require('child_process');
const touchResult = spawnSync('touch',
['-t', testFileDate, testFilePath],
{ encoding: 'utf8' });
common.skip('File system appears to lack Y2K38 support');
const { status } = spawnSync('touch',
['-t', testFileDate, testFilePath],
{ encoding: 'utf8' });
if (status !== 0) {
common.skip('File system appears to lack Y2K38 support');
}
}

// Ref: https://github.com/nodejs/node/issues/13255
Expand Down

0 comments on commit 9c8b1ed

Please sign in to comment.