Commit 467462ef628 for nodejs
commit 467462ef62813627863e4d50252b5c2e0fb1d7a6
Author: Jay <4602056+jay23606@users.noreply.github.com>
Date: Sun Nov 8 07:20:58 2026 -0500
test: skip readFileSync pipe test without proc io
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/67242
Reviewed-By: Stewart X Addison <sxa@redhat.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
diff --git a/test/parallel/test-fs-readfilesync-pipe-short-reads.js b/test/parallel/test-fs-readfilesync-pipe-short-reads.js
index 0d4fa6c98b1..467528316f3 100644
--- a/test/parallel/test-fs-readfilesync-pipe-short-reads.js
+++ b/test/parallel/test-fs-readfilesync-pipe-short-reads.js
@@ -5,13 +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/<pid>/io.');
const assert = require('assert');
const { spawn } = require('child_process');
-const fs = require('fs');
const kShortWrite = 4000;
const kShortWrites = 20;