diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-03-27 18:36:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-03-27 18:36:21 +0000 |
commit | 22d5fbfe74038c925bae4abbb1a911818a77ee42 (patch) | |
tree | a9c89c8dff9d0768d55f96508213e1a91b24cf2c /stdio-common | |
parent | 670066c3bdd9cc4222c326a76e30eb266660fae5 (diff) | |
download | glibc-22d5fbfe74038c925bae4abbb1a911818a77ee42.zip glibc-22d5fbfe74038c925bae4abbb1a911818a77ee42.tar.gz glibc-22d5fbfe74038c925bae4abbb1a911818a77ee42.tar.bz2 |
Update.
* stdio-common/tst-obprintf.c (main): Add another check to see
obstack_printf handling all possible beginnings of the block
inside an obstack chunk.
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/tst-obprintf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stdio-common/tst-obprintf.c b/stdio-common/tst-obprintf.c index 5d7089b..39e8fda 100644 --- a/stdio-common/tst-obprintf.c +++ b/stdio-common/tst-obprintf.c @@ -25,6 +25,16 @@ main (void) obstack_finish (&ob); } + /* Another loop where we finish all objects, each of size 1. This will + manage to call `obstack_print' with all possible positions inside + an obstack chunk. */ + for (n = 0; n < 40000; ++n) + { + mcheck_check_all (); + obstack_printf (&ob, "%c", 'a' + n % 26); + obstack_finish (&ob); + } + /* And a final check. */ mcheck_check_all (); |