11cb0ef41Sopenharmony_ci// Flags: --inspect=0 21cb0ef41Sopenharmony_ci'use strict'; 31cb0ef41Sopenharmony_ciconst common = require('../common'); 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci// The inspector attempts to start when Node starts. Once started, the inspector 61cb0ef41Sopenharmony_ci// warns on the use of a SIGPROF listener. 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_cicommon.skipIfInspectorDisabled(); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ciif (common.isWindows) 111cb0ef41Sopenharmony_ci common.skip('test does not apply to Windows'); 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_cicommon.skipIfWorker(); // Worker inspector never has a server running 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_cicommon.expectWarning('Warning', 161cb0ef41Sopenharmony_ci 'process.on(SIGPROF) is reserved while debugging'); 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_ciprocess.on('SIGPROF', () => {}); 19