mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-13 03:00:31 +00:00
19 lines
683 B
Diff
19 lines
683 B
Diff
--- ./test/parallel/test-fs-readfilesync-pipe-large.js.orig 2024-02-20 18:49:12.450147520 +0530
|
|
+++ ./test/parallel/test-fs-readfilesync-pipe-large.js 2024-02-20 18:55:10.946605435 +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') {
|
|
- process.stdout.write(fs.readFileSync('/dev/stdin', 'utf8'));
|
|
+ process.stdout.write(fs.readFileSync('/proc/self/fd/0', 'utf8'));
|
|
return;
|
|
}
|
|
|