fish-shell/tests
Kurtis Rader af7f5f42b6 put upper bound on data read will consume
This puts a hard upper bound of 10 MiB on the amount of data that read
will consume. This is to avoid having the shell consume an unreasonable
amount of memory, possibly causing the system to enter a OOM condition,
if the user does something non-sensical.

Fixes #3712
2017-02-09 21:04:46 -08:00
..
test_functions remove dependency on xxd 2017-01-31 22:10:53 -08:00
abbr.err Add the possibility to rename abbreviations 2016-12-01 14:42:20 -08:00
abbr.in Add the possibility to rename abbreviations 2016-12-01 14:42:20 -08:00
abbr.out Add the possibility to rename abbreviations 2016-12-01 14:42:20 -08:00
bind.expect Fixes behavior of 'x' in normal mode 2016-12-01 16:23:59 -08:00
bind.expect.err Reset fish_bind_mode when changing fish_key_bindings 2014-09-18 15:46:17 -07:00
bind.expect.out Fixes behavior of 'x' in normal mode 2016-12-01 16:23:59 -08:00
commandline.expect Stop unescaping strings with commandline -b 2016-01-10 17:25:22 -08:00
commandline.expect.err Stop unescaping strings with commandline -b 2016-01-10 17:25:22 -08:00
commandline.expect.out Stop unescaping strings with commandline -b 2016-01-10 17:25:22 -08:00
exit.expect correct handling of SIGHUP by interactive fish 2017-01-24 15:24:13 -08:00
exit.expect.err correct handling of SIGHUP by interactive fish 2017-01-24 15:24:13 -08:00
exit.expect.out correct handling of SIGHUP by interactive fish 2017-01-24 15:24:13 -08:00
expansion.err Pass the character index, not the character, to parse_util_expand_variable_error 2015-05-15 17:56:12 -07:00
expansion.in make testing on local servers hermetic 2016-02-25 17:16:36 -08:00
expansion.out Pass the character index, not the character, to parse_util_expand_variable_error 2015-05-15 17:56:12 -07:00
fkr.expect fix race condition in fkr test 2016-12-19 17:44:54 -08:00
fkr.expect.err don't allow f-k-r to run if stdin/stdout not a tty 2016-06-26 21:51:00 -07:00
fkr.expect.out f-k-r should use the user's locale 2016-06-30 20:49:56 -07:00
function.err an invalid flag to function is handled wrong 2016-11-22 16:17:51 -08:00
function.in implement means to learn about a functions source 2017-01-20 21:48:41 -08:00
function.out fix functions --copy 2016-11-28 18:04:37 -08:00
functions.err implement means to learn about a functions source 2017-01-20 21:48:41 -08:00
functions.in implement means to learn about a functions source 2017-01-20 21:48:41 -08:00
functions.out implement means to learn about a functions source 2017-01-20 21:48:41 -08:00
gen_output.fish Don't leave is_block in bad state after bad redirection 2014-09-30 17:06:56 -07:00
generic.expect Treat comments ending in backslashes as not continuing onto the next line 2015-05-02 18:22:20 -07:00
generic.expect.err Allow U+F8FF to be typed 2014-09-21 21:03:44 -07:00
generic.expect.out Allow U+F8FF to be typed 2014-09-21 21:03:44 -07:00
history.err eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
history.expect make history searching case insensitive by default 2016-10-16 20:18:16 -07:00
history.expect.err correct handling of history args 2016-07-20 21:18:48 -07:00
history.expect.out make history searching case insensitive by default 2016-10-16 20:18:16 -07:00
history.in alter history sub-command handling 2016-09-18 20:09:06 -07:00
history.out make it hard to use history command incorrectly 2016-09-09 19:23:06 -07:00
history_sample_bash improve bash command history importing 2017-02-08 20:50:57 -08:00
history_sample_corrupt1 Improve history robustness against corrupt files 2014-07-29 14:42:03 -07:00
history_sample_fish_1_x Support for importing fish 1.x's history and format, and also bash 2012-06-15 16:24:05 -07:00
history_sample_fish_2_0 Support for importing fish 1.x's history and format, and also bash 2012-06-15 16:24:05 -07:00
indent.err Implement tests for fish_indent 2014-12-23 15:46:47 -08:00
indent.in enhance fish_indent to normalize keywords 2016-04-10 18:40:11 -07:00
indent.out enhance fish_indent to normalize keywords 2016-04-10 18:40:11 -07:00
interactive.config Tweak test runner to set up environment better 2014-11-24 01:51:07 -08:00
interactive.expect.rc don't allow f-k-r to run if stdin/stdout not a tty 2016-06-26 21:51:00 -07:00
interactive.fish remove dependency on xxd 2017-01-31 22:10:53 -08:00
jobs.err bg had also had wrong exit code for some errors 2016-06-18 08:26:07 -07:00
jobs.in remove the tests/*.status files 2016-07-06 21:37:29 -07:00
jobs.out don't print header for each job 2016-06-08 21:15:07 -07:00
line-continuation.err fix handling of line continuation in keywords 2016-04-08 21:05:46 -07:00
line-continuation.in fix handling of line continuation in keywords 2016-04-08 21:05:46 -07:00
line-continuation.out fix handling of line continuation in keywords 2016-04-08 21:05:46 -07:00
locale.err remove unset vars from the environment 2016-06-15 22:10:11 -07:00
locale.in remove dependency on xxd 2017-01-31 22:10:53 -08:00
locale.out remove dependency on xxd 2017-01-31 22:10:53 -08:00
math.err add floating point output to math command 2016-05-03 19:29:04 -07:00
math.in Add test for long numbers in math 2016-12-29 14:00:15 +01:00
math.out Add test for long numbers in math 2016-12-29 14:00:15 +01:00
printf.err fix raw_string_to_scalar_type locale handling 2016-09-02 18:48:16 -07:00
printf.in remove dependency on xxd 2017-01-31 22:10:53 -08:00
printf.out remove dependency on xxd 2017-01-31 22:10:53 -08:00
random.err implement an improved random command 2016-12-20 16:46:33 -08:00
random.in implement an improved random command 2016-12-20 16:46:33 -08:00
random.out implement an improved random command 2016-12-20 16:46:33 -08:00
read.err read: Support arrays, character splitting 2014-07-14 00:46:38 -07:00
read.expect implement chunked reads 2017-01-14 20:51:54 -08:00
read.expect.err Add a test harness for interactive behavior 2014-09-07 23:56:59 -07:00
read.expect.out Add a test harness for interactive behavior 2014-09-07 23:56:59 -07:00
read.in put upper bound on data read will consume 2017-02-09 21:04:46 -08:00
read.out Correctly handle multiple chunks from read_in_chunks 2017-01-21 12:43:20 -08:00
realpath.err make fish's realpath compatible with GNU realpath 2016-10-04 20:19:44 -07:00
realpath.in make fish's realpath compatible with GNU realpath 2016-10-04 20:19:44 -07:00
realpath.out make fish's realpath compatible with GNU realpath 2016-10-04 20:19:44 -07:00
signals.expect correct handling of SIGHUP by interactive fish 2017-01-24 15:24:13 -08:00
signals.expect.err correct handling of SIGHUP by interactive fish 2017-01-24 15:24:13 -08:00
signals.expect.out correct handling of SIGHUP by interactive fish 2017-01-24 15:24:13 -08:00
status.err make status saner vis-a-vis arg parsing 2016-11-07 12:11:08 -08:00
status.in make status saner vis-a-vis arg parsing 2016-11-07 12:11:08 -08:00
status.out make status saner vis-a-vis arg parsing 2016-11-07 12:11:08 -08:00
string.err tests/string.in: add tests for string builtin 2015-10-09 11:27:18 +08:00
string.in Make string match -rnv work 2016-05-31 23:24:08 +02:00
string.out Make string match -rnv work 2016-05-31 23:24:08 +02:00
test.fish don't run fish_update_completions in unit tests 2017-01-29 18:00:48 -08:00
test1.err Add subdirectories 2005-09-20 23:31:55 +10:00
test1.in remove dependency on xxd 2017-01-31 22:10:53 -08:00
test1.out remove dependency on xxd 2017-01-31 22:10:53 -08:00
test2.err Add subdirectories 2005-09-20 23:31:55 +10:00
test2.in remove trialing spaces #2 2010-09-18 10:18:26 +08:00
test2.out Add subdirectories 2005-09-20 23:31:55 +10:00
test3.err Add subdirectories 2005-09-20 23:31:55 +10:00
test3.in make testing on local servers hermetic 2016-02-25 17:16:36 -08:00
test3.out Correctly un-export an env var when it is shadowed 2015-06-12 16:05:59 -07:00
test4.err Add subdirectories 2005-09-20 23:31:55 +10:00
test4.in emit error message when test is given invalid int 2016-11-27 20:37:30 -08:00
test4.out Make 'set -ql' search up to function scope 2015-10-23 15:15:39 -07:00
test5.err mention nullglob exceptions in failglob error msg 2016-06-02 19:51:19 -07:00
test5.in make testing on local servers hermetic 2016-02-25 17:16:36 -08:00
test5.out make testing on local servers hermetic 2016-02-25 17:16:36 -08:00
test6.err allow complete -d '' 2016-11-17 14:53:50 -08:00
test6.in Add a new completion test for optional arguments 2016-12-21 15:46:46 -08:00
test6.out Add a new completion test for optional arguments 2016-12-21 15:46:46 -08:00
test7.err Add a test case for switch error code (issue #161) 2012-06-24 13:43:44 -07:00
test7.in Update tests for new type behavior 2014-07-13 19:11:29 -07:00
test7.out Finish rewriting detect_errors to use new parser. All tests now pass (!) 2013-12-12 18:18:07 -08:00
test8.err Add variable expand ranges 2012-07-08 09:19:11 +08:00
test8.in Allow and/or statements to attach to the if/while header 2015-12-19 14:49:07 -08:00
test8.out Write tests for new if/and/or behavior (#1428) 2015-12-19 11:32:57 -08:00
test9.err Improve error reporting for unclosed blocks 2014-10-14 00:41:39 -07:00
test9.in remove the tests/*.status files 2016-07-06 21:37:29 -07:00
test9.out psub: add -s, --suffix 2015-11-14 13:15:30 +01:00
test_util.fish don't use set_color reset 2016-11-11 19:07:52 -08:00
top.out Don't leave is_block in bad state after bad redirection 2014-09-30 17:06:56 -07:00
vars_as_commands.err don't print internal token in error message 2016-07-10 20:02:39 -07:00
vars_as_commands.in don't print internal token in error message 2016-07-10 20:02:39 -07:00
vars_as_commands.out don't print internal token in error message 2016-07-10 20:02:39 -07:00