summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-12-05 20:02:41 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-12-05 20:02:41 +0000
commit363313b5be5d4b357b50d322b3ab14a2ae1ccf60 (patch)
tree916e26e0a0ac26a91c2c989b6746fad9b696b3a1
parentea2c5872e2f63415d4126dd8845c93c3a45e3e05 (diff)
downloadglibc-363313b5be5d4b357b50d322b3ab14a2ae1ccf60.tar.gz
Increase width of padded output in stdio-common/tst-put-error.
-rw-r--r--ChangeLog5
-rw-r--r--stdio-common/tst-put-error.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 239c4721bc..9cd4867aed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-05 Joseph Myers <joseph@codesourcery.com>
+
+ * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
+ 10000 as width of padded output.
+
2012-12-04 Joseph Myers <joseph@codesourcery.com>
* sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
diff --git a/stdio-common/tst-put-error.c b/stdio-common/tst-put-error.c
index 7b95491725..5209cce173 100644
--- a/stdio-common/tst-put-error.c
+++ b/stdio-common/tst-put-error.c
@@ -47,7 +47,7 @@ do_test (void)
error (EXIT_FAILURE, 0, "second fprintf succeeded");
/* Padded printing takes a different code path. */
- n = fprintf (fp, "%10000s", "foo");
+ n = fprintf (fp, "%10000000s", "foo");
printf ("fprintf = %d\n", n);
if (n >= 0)
error (EXIT_FAILURE, 0, "padded fprintf succeeded");