mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
19 lines
693 B
Diff
19 lines
693 B
Diff
--- ./test/parallel/test-fs-readfile-pipe.js.orig 2024-02-20 18:48:57.502931529 +0530
|
|
+++ ./test/parallel/test-fs-readfile-pipe.js 2024-02-20 18:52:36.717637243 +0530
|
|
@@ -25,13 +25,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', common.mustSucceed((data) => {
|
|
+ fs.readFile('/proc/self/fd/0', common.mustSucceed((data) => {
|
|
process.stdout.write(data);
|
|
}));
|
|
return;
|