From f124c7280b75ed64eb23d710a62848a36ba83564 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 12 Sep 2023 11:58:39 +0200 Subject: [PATCH] test: skip test-child-process-stdio-reuse-readable-stdio on Windows It is flaky due to the same cause of test-child-process-pipe-dataflow being flaky - cygwin quirks - so skip it on Windows too. Drive-by: remove the skip mark of test-child-process-pipe-dataflow in the status file and directly skip it in the test with a comment. --- test/parallel/parallel.status | 3 --- test/parallel/test-child-process-pipe-dataflow.js | 6 ++++++ .../test-child-process-stdio-reuse-readable-stdio.js | 6 ++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status index d96540a4889c7c..f04d6569322906 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -11,9 +11,6 @@ prefix parallel test-crypto-keygen: PASS,FLAKY # https://github.com/nodejs/node/issues/41201 test-fs-rmdir-recursive: PASS, FLAKY -# https://github.com/nodejs/node/issues/48300 -test-child-process-pipe-dataflow: SKIP -test-child-process-stdio-reuse-readable-stdio: PASS, FLAKY # Windows on ARM [$system==win32 && $arch==arm64] diff --git a/test/parallel/test-child-process-pipe-dataflow.js b/test/parallel/test-child-process-pipe-dataflow.js index 257f4046aa6b99..e61bcde5b035d2 100644 --- a/test/parallel/test-child-process-pipe-dataflow.js +++ b/test/parallel/test-child-process-pipe-dataflow.js @@ -1,5 +1,11 @@ 'use strict'; const common = require('../common'); + +if (common.isWindows) { + // https://github.com/nodejs/node/issues/48300 + common.skip('Does not work with cygwin quirks on Windows'); +} + const assert = require('assert'); const fs = require('fs'); const spawn = require('child_process').spawn; diff --git a/test/parallel/test-child-process-stdio-reuse-readable-stdio.js b/test/parallel/test-child-process-stdio-reuse-readable-stdio.js index 263270f8e8891f..19f746e25952df 100644 --- a/test/parallel/test-child-process-stdio-reuse-readable-stdio.js +++ b/test/parallel/test-child-process-stdio-reuse-readable-stdio.js @@ -1,5 +1,11 @@ 'use strict'; const common = require('../common'); + +if (common.isWindows) { + // https://github.com/nodejs/node/issues/48300 + common.skip('Does not work with cygwin quirks on Windows'); +} + const assert = require('assert'); const { spawn } = require('child_process');