summaryrefslogtreecommitdiff
path: root/test/parallel/test-process-title-cli.js
blob: 35d3693c0690e6f6d47e9f3fa5705218438ea6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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');