mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
aae0d4559c
Test guide describes a conventional layout for test headers, review inspector tests and reorganize to follow the convention. PR-URL: https://github.com/nodejs/node/pull/13428 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
17 lines
371 B
JavaScript
17 lines
371 B
JavaScript
'use strict';
|
|
require('../common');
|
|
|
|
const spawn = require('child_process').spawn;
|
|
|
|
const child = spawn(process.execPath,
|
|
[ '--inspect', 'no-such-script.js' ],
|
|
{ 'stdio': 'inherit' });
|
|
|
|
function signalHandler(value) {
|
|
child.kill();
|
|
process.exit(1);
|
|
}
|
|
|
|
process.on('SIGINT', signalHandler);
|
|
process.on('SIGTERM', signalHandler);
|