0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
termux-packages/packages/nodejs-lts/test-parallel-test-fs-readfile-pipe-large.js.patch
2024-02-21 19:47:38 +05:30

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);
});