diff options
Diffstat (limited to 'test/pseudo-tty/no_dropped_stdio.js')
-rw-r--r-- | test/pseudo-tty/no_dropped_stdio.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/pseudo-tty/no_dropped_stdio.js b/test/pseudo-tty/no_dropped_stdio.js index b24d234a38..f7d9625c62 100644 --- a/test/pseudo-tty/no_dropped_stdio.js +++ b/test/pseudo-tty/no_dropped_stdio.js @@ -1,7 +1,7 @@ // https://github.com/nodejs/node/issues/6456#issuecomment-219320599 // https://gist.github.com/isaacs/1495b91ec66b21d30b10572d72ad2cdd 'use strict'; -require('../common'); +const common = require('../common'); // 1000 bytes wrapped at 50 columns // \n turns into a double-byte character @@ -11,5 +11,9 @@ let out = ('o'.repeat(48) + '\n').repeat(20); // This results in 1025 bytes, just enough to overflow the 1kb OS X TTY buffer. out += 'o'.repeat(24) + 'O'; -process.stdout.write(out); -process.exit(0); +// In AIX, the child exits even before the python parent +// can setup the readloop. Provide a reasonable delay. +setTimeout(function() { + process.stdout.write(out); + process.exit(0); +}, common.isAix ? 200 : 0); |