summaryrefslogtreecommitdiff
path: root/stdio-common/tst-obprintf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-27 08:42:51 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-27 08:42:51 +0000
commit45f52bde66d7a6038ea7bc0226bb3257f5e17dcc (patch)
tree7fae61272eab905090bf3f1134aa3e353702d8b0 /stdio-common/tst-obprintf.c
parent0c04b91eeff39d1cbf60626fed12d7fe7b998751 (diff)
downloadglibc-45f52bde66d7a6038ea7bc0226bb3257f5e17dcc.tar.gz
(main): Make a bit more exciting.
Diffstat (limited to 'stdio-common/tst-obprintf.c')
-rw-r--r--stdio-common/tst-obprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdio-common/tst-obprintf.c b/stdio-common/tst-obprintf.c
index e94d7520c2..5d7089b268 100644
--- a/stdio-common/tst-obprintf.c
+++ b/stdio-common/tst-obprintf.c
@@ -17,10 +17,12 @@ main (void)
obstack_init (&ob);
- for (n = 0; n < 10000; ++n)
+ for (n = 0; n < 40000; ++n)
{
mcheck_check_all ();
obstack_printf (&ob, "%.*s%05d", 1 + n % 7, "foobarbaz", n);
+ if (n % 777 == 0)
+ obstack_finish (&ob);
}
/* And a final check. */