summary refs log tree commit diff
path: root/stdio-common/tst-obprintf.c
diff options
context:
space:
mode:
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.  */