diff options
Diffstat (limited to 'tests/tail-2')
-rwxr-xr-x | tests/tail-2/tail-n0f.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tail-2/tail-n0f.sh b/tests/tail-2/tail-n0f.sh index a8d375978..1c6ba89eb 100755 --- a/tests/tail-2/tail-n0f.sh +++ b/tests/tail-2/tail-n0f.sh @@ -29,6 +29,11 @@ require_proc_pid_status_ touch empty || framework_failure_ echo anything > nonempty || framework_failure_ +# First verify that -[nc]0 without -f, exit without reading +touch unreadable || framework_failure_ +chmod 0 unreadable || framework_failure_ +tail -c0 unreadable || fail=1 +tail -n0 unreadable || fail=1 for inotify in ---disable-inotify ''; do for file in empty nonempty; do |