mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
db12ece8c4
PR-URL: https://github.com/nodejs/node/pull/36768 Refs: https://github.com/nodejs/node/pull/34291 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
19 lines
404 B
JavaScript
19 lines
404 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
// On IBMi, the rss memory always returns zero
|
|
if (common.isIBMi)
|
|
common.skip('On IBMi, the rss memory always returns zero');
|
|
|
|
const assert = require('assert');
|
|
|
|
const fs = require('fs');
|
|
|
|
const files = [];
|
|
|
|
while (files.length < 256)
|
|
files.push(fs.openSync(__filename, 'r'));
|
|
|
|
const r = process.memoryUsage.rss();
|
|
assert.strictEqual(r > 0, true);
|