diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-10 12:24:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-10 12:24:59 +0000 |
commit | f089969ec96e168d8a5eb0475c08ea9bab585a8d (patch) | |
tree | cfc6055fff5e2246bf7cad04ea2b699541ec953e /tests/misc | |
parent | b44a6e85658f77ec1ec3a8947b4eb497892e9db2 (diff) | |
download | coreutils-f089969ec96e168d8a5eb0475c08ea9bab585a8d.tar.xz |
Add a test for the above-fixed bug.
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/printf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/misc/printf b/tests/misc/printf index cbca7ea4e..7f7074dd7 100755 --- a/tests/misc/printf +++ b/tests/misc/printf @@ -34,4 +34,14 @@ EOF cmp out exp || fail=1 test $fail = 1 && diff out exp 2> /dev/null +rm -f out exp +# Until coreutils-4.5.10, this would elicit a segfault. +$prog '%*sy\n' -3 x > out || fail=1 +cat <<\EOF > exp +x y +EOF + +cmp out exp || fail=1 +test $fail = 1 && diff out exp 2> /dev/null + (exit $fail); exit $fail |