From bee4ed65fd0c33c1a1631f23dab54a0fc2cf99b3 Mon Sep 17 00:00:00 2001 From: jay23606 <4602056+jay23606@users.noreply.github.com> Date: Wed, 4 Nov 2026 05:16:17 -0500 Subject: [PATCH 1/2] test: skip readFileSync pipe test without proc io Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com> --- test/parallel/test-fs-readfilesync-pipe-short-reads.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-fs-readfilesync-pipe-short-reads.js b/test/parallel/test-fs-readfilesync-pipe-short-reads.js index 0d4fa6c98b14..4bc7088d305f 100644 --- a/test/parallel/test-fs-readfilesync-pipe-short-reads.js +++ b/test/parallel/test-fs-readfilesync-pipe-short-reads.js @@ -13,6 +13,9 @@ const assert = require('assert'); const { spawn } = require('child_process'); const fs = require('fs'); +if (!fs.existsSync('/proc/self/io')) + common.skip('Requires /proc//io.'); + const kShortWrite = 4000; const kShortWrites = 20; const kTail = 100_000; From c10bb307f637b28eda8549579222126b8a77532d Mon Sep 17 00:00:00 2001 From: jay23606 <4602056+jay23606@users.noreply.github.com> Date: Fri, 6 Nov 2026 07:06:48 -0500 Subject: [PATCH 2/2] test: skip readFileSync pipe test without proc io Assisted-by: Codex Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com> --- test/parallel/test-fs-readfilesync-pipe-short-reads.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-fs-readfilesync-pipe-short-reads.js b/test/parallel/test-fs-readfilesync-pipe-short-reads.js index 4bc7088d305f..467528316f34 100644 --- a/test/parallel/test-fs-readfilesync-pipe-short-reads.js +++ b/test/parallel/test-fs-readfilesync-pipe-short-reads.js @@ -5,16 +5,13 @@ // that happens. // Refs: https://github.com/nodejs/node/issues/66341 const common = require('../common'); +const fs = require('fs'); -if (!common.isLinux) +if (!fs.existsSync('/proc/self/io')) common.skip('Paces the writes with /proc//io.'); const assert = require('assert'); const { spawn } = require('child_process'); -const fs = require('fs'); - -if (!fs.existsSync('/proc/self/io')) - common.skip('Requires /proc//io.'); const kShortWrite = 4000; const kShortWrites = 20;