mirror of https://gitee.com/openkylin/nodejs.git
13 lines
290 B
JavaScript
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));
|
||
|
}
|