node/test/fixtures
Mudit Ameta 29c4a2af5c repl: Fixed node repl history edge case.
If the deprecated NODE_REPL_HISTORY_FILE is set to default
node history file path ($HOME/.node_repl_history) and the file
doesn't exist, then node creates the file and then crashes when
it tries to parse that file as JSON thinking that it's an older
JSON formatted history file. This fixes that bug.

This patch also prevents node repl from throwing if the old
history file is empty or if $HOME/.node_repl_history is empty.

Fixes: https://github.com/nodejs/node/issues/4102
PR-URL: https://github.com/nodejs/node/pull/4108
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-12-22 13:29:28 -05:00
..
b Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
break-in-module Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
clustered-server test: common.js -> common 2015-02-22 19:34:17 -08:00
cycles Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
empty Don't attempt to load a directory. 2010-08-04 15:55:47 -07:00
global Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
internal-modules iojs: introduce internal modules 2015-03-25 22:12:18 +03:00
json-with-directory-name-module Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
keys crypto: load PFX chain the same way as regular one 2015-12-17 20:22:40 -05:00
module-load-order Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
module-require module: allow require('.') 2015-03-20 18:17:25 +01:00
nested-index Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
node_modules repl: fix require('3rdparty') regression 2015-12-09 23:30:02 +01:00
packages Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
require-bin module: fix regression in require ../ 2014-12-11 10:18:00 +01:00
syntax src: wrap source before doing syntax check 2015-10-29 13:08:32 -05:00
test-init-index Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
test-init-native Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
uncaught-exceptions src: break on uncaught exception 2013-06-26 19:54:31 +02:00
.empty-repl-history-file repl: Fixed node repl history edge case. 2015-12-22 13:29:28 -05:00
.node_repl_history test: add tests for persistent repl history 2015-08-04 11:56:18 -07:00
GH-892-request.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
GH-1899-output.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
a.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
a1.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
agent.crt Add failing test for TLS server 2010-11-19 13:28:13 -08:00
agent.key Add failing test for TLS server 2010-11-19 13:28:13 -08:00
alice.crt tls: x509 certificate subject parsing fail 2011-08-31 03:47:23 +09:00
breakpoints.js debugger: support mirroring Date objects 2012-05-02 15:48:23 +07:00
breakpoints_utf8.js test: Fix debugger repl tests 2013-02-26 16:49:17 -08:00
catch-stdout-error.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
cert.pem Add SSL tests 2010-04-02 17:14:03 -07:00
child-process-message-and-exit.js child process: fix processes with IPC channel don't emit 'close' 2012-08-30 16:13:27 +02:00
child-process-persistent.js test: enable linting for tests 2015-05-19 21:21:27 +02:00
child-process-spawn-node.js child_process: make .fork()'d child auto-exit 2012-09-22 03:48:59 +02:00
child_process_should_emit_error.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
cluster-preload-test.js src: setup cluster workers before preloading 2015-04-04 00:53:45 +02:00
cluster-preload.js node: rename from io.js to node 2015-08-23 17:59:43 -04:00
create-file.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
debug-target.js debugger: fix --debug-brk 2012-09-18 10:56:37 +04:00
deprecated-userland-function.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
deprecated.js util: Remove p, has been deprecated for years 2015-10-19 20:52:56 +02:00
destroy-stdin.js test: new test, verify that we don't close and reuse fd 0 2011-12-06 22:02:26 +01:00
dherror.pem tls, crypto: add DHE support 2014-08-29 00:36:48 +04:00
echo-close-check.js win,test: fix test-stdin-from-file 2015-03-05 15:30:52 +01:00
echo.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
elipses.txt Bugfix: fs.ReadStream.setEncoding 2010-05-26 18:33:38 -07:00
empty.js test: add --debug-brk regression test 2012-02-07 23:42:38 +01:00
empty.txt Handle empty files with fs.readFile 2010-05-13 12:42:17 -07:00
exit.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
exports-function-with-param.js test: add test for debugging one line files 2015-12-16 10:08:43 -05:00
fixture.ini More ini parser features. 2010-03-10 21:44:59 -08:00
foafssl.crt added test case for foaf+ssl client certificate 2011-09-03 00:49:37 +09:00
foafssl.key added test case for foaf+ssl client certificate 2011-09-03 00:49:37 +09:00
foo Support including modules that don't have an extension. 2010-07-20 10:26:24 -07:00
google_ssl_hello.bin tls: add `options` argument to createSecurePair 2015-10-17 11:53:45 -04:00
invalid.json module: add filename to require() json errors 2012-07-06 15:26:41 -07:00
listen-on-socket-and-exit.js test: only refresh tmpDir for tests that need it 2015-06-13 22:27:17 -07:00
module-loading-error.node process: show detailed error message in process.dlopen() 2012-03-06 01:34:39 +01:00
msca.pem Add SSL tests 2010-04-02 17:14:03 -07:00
multi-alice.crt tls: parsing multiple values of a key in ssl certificate 2012-03-10 23:43:16 +09:00
net-fd-passing-receiver.js test: change calls to deprecated util.print() 2015-09-28 13:21:15 -07:00
not-main-module.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
old-repl-history-file.json test: add tests for persistent repl history 2015-08-04 11:56:18 -07:00
parent-process-nonpersistent.js child_process: fix test implementation for options.detached 2012-06-11 10:27:51 -07:00
pass-cert.pem test: update an expired certificate 2011-11-27 02:05:24 +09:00
pass-csr.pem tls, https: add passphrase option 2011-10-31 17:36:43 +09:00
pass-key.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
path.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
person.jpg Fix HTTP agent disconnection problem 2011-03-14 14:47:41 -07:00
person.jpg.gz Fix #1882 zlib Update 'availOutBefore' value, and test 2011-10-13 16:47:51 -07:00
print-10-lines.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
print-chars-from-buffer.js test: create temp dir in common.js 2015-06-12 10:27:29 +10:00
print-chars.js test: create temp dir in common.js 2015-06-12 10:27:29 +10:00
printA.js src: add -r/--require flags for preloading modules 2015-03-19 21:42:16 +11:00
printB.js src: add -r/--require flags for preloading modules 2015-03-19 21:42:16 +11:00
printC.js src: add -r/--require flags for preloading modules 2015-03-19 21:42:16 +11:00
recvfd.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
registerExt.hello.world Don't try to run extension loaders unless they're actually functions 2010-09-22 10:13:25 -07:00
registerExt.test Add require.registerExtension 2010-03-11 22:00:55 -08:00
registerExt2.test Add require.registerExtension 2010-03-11 22:00:55 -08:00
sample.png added test for Issue #214 2010-07-19 10:16:31 -07:00
semicolon.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
should_exit.js test: fix timing issue in signal test 2015-03-23 00:55:34 +01:00
spkac.fail crypto: add SPKAC support 2013-10-16 09:43:19 -07:00
spkac.pem crypto: add SPKAC support 2013-10-16 09:43:19 -07:00
spkac.valid crypto: add SPKAC support 2013-10-16 09:43:19 -07:00
stdio-filter.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
test-error-first-line-offset.js module: fix column offsets in errors 2015-11-20 16:26:24 -05:00
test-fs-readfile-error.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
test-regress-GH-4015.js fs: don't segfault on deeply recursive stat() 2012-09-14 02:37:51 +02:00
test_bad_rsa_privkey.pem crypto: check for OpenSSL errors when signing 2015-08-17 21:38:12 -07:00
test_ca.pem Split tests. 2010-02-25 11:41:11 -08:00
test_cert.pem Split tests. 2010-02-25 11:41:11 -08:00
test_cert.pfx test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_dsa_params.pem test: add DSA sign/verify crypto tests 2011-11-22 16:01:07 +01:00
test_dsa_privkey.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_dsa_privkey_encrypted.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_dsa_pubkey.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_key.pem Split tests. 2010-02-25 11:41:11 -08:00
test_rsa_privkey.pem Support for signature verification with RSA/DSA public keys 2011-06-14 12:50:00 +02:00
test_rsa_privkey_2.pem crypto: add support for RSA public key signing/verification 2011-11-17 23:01:39 +01:00
test_rsa_privkey_encrypted.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_rsa_pubkey.pem Support for signature verification with RSA/DSA public keys 2011-06-14 12:50:00 +02:00
test_rsa_pubkey_2.pem crypto: add support for RSA public key signing/verification 2011-11-17 23:01:39 +01:00
throws_error.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
throws_error1.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
throws_error2.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
throws_error3.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
throws_error4.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
throws_error5.js src: fix buffer overflow for long exception lines 2015-09-06 21:38:07 +10:00
throws_error6.js src: use standard conform snprintf on windows 2015-09-06 21:38:08 +10:00
throws_error7.js src: don't print garbage errors 2015-12-05 11:15:49 -05:00
tls-session-ticket.txt tls: expose SSL_CTX_set_timeout via tls.createServer 2013-03-26 01:37:49 +01:00
utf8-bom.js module: strip byte order marker when loading *.js and *.json files 2011-08-04 16:52:55 +02:00
utf8-bom.json module: strip byte order marker when loading *.js and *.json files 2011-08-04 16:52:55 +02:00
vm-run-in-debug-context.js vm: fix crash on fatal error in debug context 2015-03-22 20:07:49 +01:00
x.txt Split tests. 2010-02-25 11:41:11 -08:00
x1024.txt test: fixture for streams2 testing 2012-12-13 17:00:28 -08:00