0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/parallel/test-memory-usage-emfile.js
Xu Meng 262c66a851
test: skip the unsupported test cases for IBM i
This is a following PR of #30714.

PR-URL: https://github.com/nodejs/node/pull/30819
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-12-25 23:11:02 +01:00

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();
assert.strictEqual(r.rss > 0, true);