1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-16 12:22:01 +02:00

Add a test for the above-fixed bug.

This commit is contained in:
Jim Meyering
2003-03-10 12:24:59 +00:00
parent b44a6e8565
commit f089969ec9

View File

@@ -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