11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci// This tests that pausing and resuming stdin does not hang and timeout 31cb0ef41Sopenharmony_ci// when done in a child process. See test/parallel/test-stdin-pause-resume.js 41cb0ef41Sopenharmony_ciconst common = require('../common'); 51cb0ef41Sopenharmony_ciconst assert = require('assert'); 61cb0ef41Sopenharmony_ciconst child_process = require('child_process'); 71cb0ef41Sopenharmony_ciconst path = require('path'); 81cb0ef41Sopenharmony_ciconst cp = child_process.spawn( 91cb0ef41Sopenharmony_ci process.execPath, 101cb0ef41Sopenharmony_ci [path.resolve(__dirname, 'test-stdin-pause-resume.js')] 111cb0ef41Sopenharmony_ci); 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_cicp.on('exit', common.mustCall((code) => { 141cb0ef41Sopenharmony_ci assert.strictEqual(code, 0); 151cb0ef41Sopenharmony_ci})); 16