node/test/parallel/test-process-title-cli.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

17 lines
386 B
JavaScript

// Flags: --title=foo
'use strict';
const common = require('../common');
if (common.isSunOS)
common.skip(`Unsupported platform [${process.platform}]`);
if (common.isIBMi)
common.skip('Unsupported platform IBMi');
const assert = require('assert');
// Verifies that the --title=foo command line flag set the process
// title on startup.
assert.strictEqual(process.title, 'foo');