mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: make stdout-close-unref work in test runner
process.stdout isn't fully initialized yet by the time the test starts when invoked with `python tools/test.py`. Use process.stdin instead and force initialization with process.stdin.resume().
This commit is contained in:
1 parent
36503b523d
commit
2e70ddad9d
1 file changed
+3
-2
@@ -19,5 +19,6 @@
|
|||||||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
process.stdout._handle.close();
|
process.stdin.resume();
|
||||||
process.stdout._handle.unref(); // Should not segfault.
|
process.stdin._handle.close();
|
||||||
|
process.stdin._handle.unref(); // Should not segfault.
|
||||||
Reference in new issue
Block a user