summaryrefslogtreecommitdiff
path: root/test/parallel/test-warn-sigprof.js
blob: e5335215d743b66ed4ee5bc9574ec36ce06d366c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Flags: --inspect=0
'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',
                     common.noWarnCode);

process.on('SIGPROF', () => {});