fish-shell/tests
Fabian Homborg 0bde698f81 printf: Don't die on incomplete conversions
POSIX dictates here that incomplete conversions, like in

    printf %d\n 15.2

or

    printf %d 14g

are still printed along with any error.

This seems alright, as it allows users to silence stderr to accept incomplete conversions.

This commit implements it, but what's a bit weird is the ordering between stdout and stderr,
causing the error to be printed _after_, like

    15
    14
    15.1: value not completely converted
    14,2: value not completely converted

but that seems like a general issue with how we buffer the streams.

(I know that nonfatal_error is a copy of most of fatal_error - I tried
differently, and va_* is weird)

Fixes #5532.
2019-03-17 17:00:55 +01:00
..
invocation Add string-replace-fewer-backslashes feature 2019-03-15 15:18:19 +01:00
test_functions Don't resolve symlinks with cd 2018-10-06 17:03:18 -07:00
__fish_complete_directories.err
__fish_complete_directories.in Fix __fish_complete_suffix behavior per __fish_complete_directories test 2018-05-20 14:35:52 -05:00
__fish_complete_directories.out wcsfilecmp: sort - after everything else 2019-03-16 01:31:56 -07:00
__fish_contains_opt.err
__fish_contains_opt.in
__fish_contains_opt.out
__fish_not_contain_opt.err
__fish_not_contain_opt.in
__fish_not_contain_opt.out
.gitignore
abbr.err
abbr.in
abbr.out
alias.err
alias.in
alias.out
andandoror.err
andandoror.in
andandoror.out
argparse.err
argparse.in
argparse.out
bind.err Add separation of "preset" bindings 2018-09-30 16:54:56 +02:00
bind.expect Reduce default escape delay 2019-02-07 12:19:36 +01:00
bind.expect.err
bind.expect.out Reduce default escape delay 2019-02-07 12:19:36 +01:00
bind.in Add separation of "preset" bindings 2018-09-30 16:54:56 +02:00
bind.out Add separation of "preset" bindings 2018-09-30 16:54:56 +02:00
cd.err Correctly inherit a virtual PWD 2019-01-22 13:34:04 -08:00
cd.in Only inherit a PWD if it resolves to "." 2019-02-18 13:20:40 -08:00
cd.out Only inherit a PWD if it resolves to "." 2019-02-18 13:20:40 -08:00
commandline.expect
commandline.expect.err
commandline.expect.out
complete.err
complete.in Test that things can't wrap themselves 2019-01-17 16:46:15 +01:00
complete.out Test that things can't wrap themselves 2019-01-17 16:46:15 +01:00
count.err [count] Allow counting lines from stdin 2019-03-15 14:31:36 +01:00
count.in [count] Allow counting lines from stdin 2019-03-15 14:31:36 +01:00
count.out [count] Allow counting lines from stdin 2019-03-15 14:31:36 +01:00
exit.expect
exit.expect.err
exit.expect.out
expansion.err Revert "Update tests" 2018-11-28 06:27:21 -08:00
expansion.in tests/expansion: Use rm instead of unlink 2019-02-18 15:39:58 +01:00
expansion.out Allow nested square brackets again 2018-11-22 17:57:27 -08:00
fish_opt.err
fish_opt.in
fish_opt.out
fkr.expect
fkr.expect.err
fkr.expect.out
function.err functions -q: Return false without an argument 2019-02-01 18:34:45 +01:00
function.in functions -q: Return false without an argument 2019-02-01 18:34:45 +01:00
function.out functions -q: Return false without an argument 2019-02-01 18:34:45 +01:00
functions.err
functions.in fix tests 2018-11-13 21:54:41 +08:00
functions.out
gen_output.fish Remove caret redirection 2018-04-01 13:48:21 -07:00
generic.expect Move bare source test to expect 2018-12-11 18:23:37 +01:00
generic.expect.err
generic.expect.out
histfile.expect histfile tests: tweak expect commands to avoid crash on 32-bit platforms 2019-01-05 16:03:15 +08:00
histfile.expect.err
histfile.expect.out
histfile.expect.status
history_sample_bash
history_sample_corrupt1
history_sample_fish_1_x
history_sample_fish_2_0
history.err
history.expect history expect tests: fix the tests. 2018-11-20 05:26:54 -08:00
history.expect.err
history.expect.out
history.in
history.out
indent.err
indent.in Teach fish_indent about escaped newlines 2018-05-07 21:40:53 -07:00
indent.out Teach fish_indent about escaped newlines 2018-05-07 21:40:53 -07:00
interactive.config
interactive.expect.rc
interactive.fish interactive tests: exit quietly if expect not available 2019-01-28 21:51:57 +08:00
invocation.sh tests/invocation: Use ggrep if available 2019-02-13 13:49:53 +01:00
jobs.err
jobs.in Remove caret redirection 2018-04-01 13:48:21 -07:00
jobs.out
line-continuation.err
line-continuation.in
line-continuation.out
locale.err
locale.in
locale.out
math.err Add 'round' function to builtin math 2018-12-01 13:25:00 -08:00
math.in math: Allow --scale=max 2019-02-13 12:54:58 +01:00
math.out math: Allow --scale=max 2019-02-13 12:54:58 +01:00
parameter_expansion.err
parameter_expansion.in
parameter_expansion.out
pipestatus.err add $pipestatus support 2019-02-24 21:46:52 -08:00
pipestatus.expect add $pipestatus support 2019-02-24 21:46:52 -08:00
pipestatus.expect.err add $pipestatus support 2019-02-24 21:46:52 -08:00
pipestatus.expect.out add $pipestatus support 2019-02-24 21:46:52 -08:00
pipestatus.in add $pipestatus support 2019-02-24 21:46:52 -08:00
pipestatus.out add $pipestatus support 2019-02-24 21:46:52 -08:00
printf.err printf: Don't die on incomplete conversions 2019-03-17 17:00:55 +01:00
printf.in printf: Don't die on incomplete conversions 2019-03-17 17:00:55 +01:00
printf.out printf: Don't die on incomplete conversions 2019-03-17 17:00:55 +01:00
psub.err
psub.in tests/psub: Don't use grep -o and diff -q 2019-01-03 11:05:03 +01:00
psub.out
random.err
random.in
random.out
read.err
read.expect tests/read.expect: Skip /dev/stdin if it doesn't exist 2019-01-01 14:52:26 +01:00
read.expect.err
read.expect.out
read.in tests/read: Set TERM=xterm explicitly 2019-01-01 14:52:26 +01:00
read.out Correct read behavior for unset values and update tests accordingly 2018-04-17 21:34:22 -05:00
realpath.err Revert "wrealpath: Fail for file/something" 2018-11-19 09:12:26 +01:00
realpath.in tests/realpath.in: We want to delete $PWD, darnit! 2019-02-13 13:05:50 +01:00
realpath.out
set.err Test setting readonly variables 2018-11-18 22:33:02 +01:00
set.in Test setting readonly variables 2018-11-18 22:33:02 +01:00
set.out Test setting readonly variables 2018-11-18 22:33:02 +01:00
setenv.err
setenv.in
setenv.out
signal.err Add basic signal test 2019-02-23 11:57:19 -08:00
signal.in Event blocks just block all events 2019-02-23 13:02:07 -08:00
signal.out Event blocks just block all events 2019-02-23 13:02:07 -08:00
signals.expect
signals.expect.err
signals.expect.out
status.err tests: Move directory redirection test to invocation 2019-02-13 13:05:50 +01:00
status.in tests: Move directory redirection test to invocation 2019-02-13 13:05:50 +01:00
status.out Add string-replace-fewer-backslashes feature 2019-03-15 15:18:19 +01:00
string.err Implement PCRE2 escaping 2018-11-15 12:00:56 -06:00
string.in string: Fix split0 return status 2019-02-26 20:03:40 +01:00
string.out string: Fix split0 return status 2019-02-26 20:03:40 +01:00
test_builtinbuiltin.err Add builtin -q 2019-02-12 20:34:19 +01:00
test_builtinbuiltin.in Add builtin -q 2019-02-12 20:34:19 +01:00
test_builtinbuiltin.out Add builtin -q 2019-02-12 20:34:19 +01:00
test_cmdsub.err Revert "Update tests" 2018-11-28 06:27:21 -08:00
test_cmdsub.in
test_cmdsub.out
test_exec_fail.err src/exec: fix assertion on failed exec redirection 2019-02-12 20:52:03 -08:00
test_exec_fail.in src/exec: fix assertion on failed exec redirection 2019-02-12 20:52:03 -08:00
test_exec_fail.out src/exec: fix assertion on failed exec redirection 2019-02-12 20:52:03 -08:00
test_exec_fail.status src/exec: fix assertion on failed exec redirection 2019-02-12 20:52:03 -08:00
test_util.fish
test.fish Report duration of each test 2018-09-03 14:13:31 -07:00
test1.err Also set the read-only flag for non-electric vars 2019-01-18 19:27:41 +01:00
test1.in Also set the read-only flag for non-electric vars 2019-01-18 19:27:41 +01:00
test1.out Also set the read-only flag for non-electric vars 2019-01-18 19:27:41 +01:00
test2.err
test2.in
test2.out
test3.err Allow setting universal path variables 2018-10-27 01:05:00 -07:00
test3.in Correctly split path environment variables about colons 2018-10-27 15:20:32 -07:00
test3.out Correctly split path environment variables about colons 2018-10-27 15:20:32 -07:00
test4.err
test4.in
test4.out builtin_test: don't exit 1 for eval errors, add tests for big args 2018-12-15 22:05:19 -08:00
test5.err Revert "Update tests" 2018-11-28 06:27:21 -08:00
test5.in
test5.out
test6.err
test6.in Remove caret redirection 2018-04-01 13:48:21 -07:00
test6.out
test7.err
test7.in
test7.out
test8.err
test8.in
test8.out
test9.err
test9.in tests/test9: Guard locale 2019-01-01 14:52:26 +01:00
test9.out
top.out
umask.err
umask.in
umask.out
vars_as_commands.err Revert "Update tests" 2018-11-28 06:27:21 -08:00
vars_as_commands.in Fix builtin $var expansion 2019-02-10 14:45:03 -08:00
vars_as_commands.out Fix builtin $var expansion 2019-02-10 14:45:03 -08:00
wait.expect Speed up wait.expect test 2018-12-31 19:36:08 -06:00
wait.expect.err
wait.expect.out
while.err Make while loops evaluate to the last executed command status 2019-01-20 16:37:20 -08:00
while.in Make while loops evaluate to the last executed command status 2019-01-20 16:37:20 -08:00
while.out Make while loops evaluate to the last executed command status 2019-01-20 16:37:20 -08:00
zero_based_array.err Revert "Update tests" 2018-11-28 06:27:21 -08:00
zero_based_array.in Correct misdetection of [001] as literal zero index 2018-10-15 14:11:37 -05:00
zero_based_array.out Correct misdetection of [001] as literal zero index 2018-10-15 14:11:37 -05:00