11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciconst assert = require('assert'); 41cb0ef41Sopenharmony_ciconst spawn = require('child_process').spawn; 51cb0ef41Sopenharmony_ciconst fixtures = require('../common/fixtures'); 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciconst child = spawn(process.argv[0], [fixtures.path('should_exit.js')]); 81cb0ef41Sopenharmony_cichild.stdout.once('data', function() { 91cb0ef41Sopenharmony_ci child.kill('SIGINT'); 101cb0ef41Sopenharmony_ci}); 111cb0ef41Sopenharmony_cichild.on('exit', common.mustCall(function(exitCode, signalCode) { 121cb0ef41Sopenharmony_ci assert.strictEqual(exitCode, null); 131cb0ef41Sopenharmony_ci assert.strictEqual(signalCode, 'SIGINT'); 141cb0ef41Sopenharmony_ci})); 15