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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user