Files
termux-packages/packages/nodejs-lts/test-fs-readfile-pipe-large.js.patch
termux-pacman-bot 04edb498c3 chore(main/nodejs-lts): pick up changes for how we configure from nodejs
Although --debug is not needed currently for nodejs-lts, let's pick it
up before it is actually needed. Also would make things much more
standard between the two packages
2025-12-10 10:42:59 +00:00

19 lines
696 B
Diff

--- ./test/parallel/test-fs-readfile-pipe-large.js.orig 2024-02-20 18:49:29.737449292 +0530
+++ ./test/parallel/test-fs-readfile-pipe-large.js 2024-02-20 18:55:06.563112174 +0530
@@ -4,13 +4,13 @@
// Simulate `cat readfile.js | node readfile.js`
if (common.isWindows || common.isAIX || common.isIBMi)
- common.skip(`No /dev/stdin on ${process.platform}.`);
+ common.skip(`No /proc/self/fd/0 on ${process.platform}.`);
const assert = require('assert');
const fs = require('fs');
if (process.argv[2] === 'child') {
- fs.readFile('/dev/stdin', function(er, data) {
+ fs.readFile('/proc/self/fd/0', function(er, data) {
assert.ifError(er);
process.stdout.write(data);
});