]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add a test for the above-fixed bug.
authorJim Meyering <jim@meyering.net>
Mon, 10 Mar 2003 12:24:59 +0000 (12:24 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 10 Mar 2003 12:24:59 +0000 (12:24 +0000)
tests/misc/printf

index cbca7ea4e37df51dbd6b76591439e3f13be9b383..7f7074dd70f6ece9a10d54a1c7d2de32c234c9a4 100755 (executable)
@@ -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