11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ci// On IBMi, the rss memory always returns zero 51cb0ef41Sopenharmony_ciif (common.isIBMi) 61cb0ef41Sopenharmony_ci common.skip('On IBMi, the rss memory always returns zero'); 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ciconst assert = require('assert'); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ciconst fs = require('fs'); 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_ciconst files = []; 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ciwhile (files.length < 256) 151cb0ef41Sopenharmony_ci files.push(fs.openSync(__filename, 'r')); 161cb0ef41Sopenharmony_ci 171cb0ef41Sopenharmony_ciconst r = process.memoryUsage.rss(); 181cb0ef41Sopenharmony_ciassert.strictEqual(r > 0, true); 19