diff options
author | JungMinu <jmwsoft@gmail.com> | 2016-08-09 00:55:19 +0900 |
---|---|---|
committer | JungMinu <jmwsoft@gmail.com> | 2016-08-13 23:03:30 +0900 |
commit | fce4b981eacbce0b85a2418d042f1f67d40e9834 (patch) | |
tree | bc8a170ad3193ab02c1210e94218e6230fec302b /test/parallel/test-preload.js | |
parent | 6a3dbdacd6cf67f643dee219fd782a193ddd2534 (diff) | |
download | android-node-v8-fce4b981eacbce0b85a2418d042f1f67d40e9834.tar.gz android-node-v8-fce4b981eacbce0b85a2418d042f1f67d40e9834.tar.bz2 android-node-v8-fce4b981eacbce0b85a2418d042f1f67d40e9834.zip |
repl,util: insert carriage returns in output
`\n` is not enough for Linux with some custom stream
add carriage returns to ensure that the output is displayed correctly
using `\r\n` should not be a problem, even on non-Windows platforms.
Fixes: https://github.com/nodejs/node/issues/7954
PR-URL: https://github.com/nodejs/node/pull/8028
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-preload.js')
-rw-r--r-- | test/parallel/test-preload.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-preload.js b/test/parallel/test-preload.js index e60b29dfbe..96ce9559a5 100644 --- a/test/parallel/test-preload.js +++ b/test/parallel/test-preload.js @@ -123,7 +123,7 @@ const interactive = childProcess.exec(nodeBinary + ' ' + '-i', common.mustCall(function(err, stdout, stderr) { assert.ifError(err); - assert.strictEqual(stdout, `> 'test'\n> `); + assert.strictEqual(stdout, `> 'test'\r\n> `); })); interactive.stdin.write('a\n'); |