nodejs/test/parallel/test-process-constants-noat...

13 lines
290 B
JavaScript

'use strict';
const common = require('../common');
const assert = require('assert');
const constants = require('fs').constants;
if (common.isLinux) {
assert('O_NOATIME' in constants);
assert.strictEqual(constants.O_NOATIME, 0x40000);
} else {
assert(!('O_NOATIME' in constants));
}