node/test/simple/test-umask.js

7 lines
136 B
JavaScript

process.mixin(require("../common"));
var mask = 0664;
var old = process.umask(mask);
assert.equal(true, mask === process.umask(old));