node/test/parallel/test-warn-sigprof.js
Vse Mozhet Byt 2d2986ae72 test: simplify test skipping
* Make common.skip() exit.

  Also add common.printSkipMessage() for partial skips.

* Don't make needless things before skip

PR-URL: https://github.com/nodejs/node/pull/14021
Fixes: https://github.com/nodejs/node/issues/14016
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-07-04 12:41:49 +03:00

16 lines
423 B
JavaScript

'use strict';
const common = require('../common');
// The inspector attempts to start when Node starts. Once started, the inspector
// warns on the use of a SIGPROF listener.
common.skipIfInspectorDisabled();
if (common.isWindows)
common.skip('test does not apply to Windows');
common.expectWarning('Warning',
'process.on(SIGPROF) is reserved while debugging');
process.on('SIGPROF', () => {});