diff options
author | Pádraig Brady <P@draigBrady.com> | 2016-06-24 01:09:28 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-06-24 01:09:28 +0100 |
commit | ba5767c2b869dcbbae91f1d42b488dca31652a0a (patch) | |
tree | bab4ec2292656e913d80efde51cc8d4fa275b1ce /tests/misc/yes.sh | |
parent | 818b2f48974298065a43a8a2d5355e4aaa65c09d (diff) | |
download | coreutils-ba5767c2b869dcbbae91f1d42b488dca31652a0a.tar.xz |
yes: fix copy and paste issue with previous commit
* src/yes.c (main): Output 'y' not '-'.
* tests/misc/yes.sh: Add a test for default output.
Diffstat (limited to 'tests/misc/yes.sh')
-rwxr-xr-x | tests/misc/yes.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/misc/yes.sh b/tests/misc/yes.sh index a3027432b..c8ef65a7f 100755 --- a/tests/misc/yes.sh +++ b/tests/misc/yes.sh @@ -19,6 +19,9 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ yes +# Check basic operation +test "$(yes | head -n1)" = 'y' || fail=1 + # Check various single item sizes, with the most important # size being BUFSIZ used for the local buffer to yes(1). # Note a \n is added, so actual sizes required internally |