From: Julian Seward Date: Wed, 29 May 2002 23:34:32 +0000 (+0000) Subject: Change counts a bit so as not to spew out so much junk. X-Git-Tag: svn/VALGRIND_1_0_3~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5acdede80e4ecdd3521e0d094b46079c37fe0dcb;p=thirdparty%2Fvalgrind.git Change counts a bit so as not to spew out so much junk. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@339 --- diff --git a/tests/pth_cancel1.c b/tests/pth_cancel1.c index b8802c6af2..62047395b5 100644 --- a/tests/pth_cancel1.c +++ b/tests/pth_cancel1.c @@ -96,8 +96,8 @@ void *bullet_proof(void *id_p) } /* loop forever until picked off with a cancel */ - for(;;i++) { - if (i%1000 == 0) + for(i = 0; i < 10000000; i++) { + if (i%10000 == 0) print_count(messagep, *my_id, i); if (i%100000 == 0) { printf("\n%s This is the thread that never ends... #%d\n", @@ -147,10 +147,10 @@ void *ask_for_it(void *id_p) /* loop forever until picked off with a cancel */ for(;;i++) { - if (i%1000 == 0) + if (i%10000 == 0) print_count(messagep, *my_id, i); - if (i%10000 == 0) { - printf("\n%s\tLook, %d, I'll tell you when you can cancel me.\n", + if (i%100000 == 0) { + printf("\n%s\t%d Look, I'll tell you when you can cancel me.\n", messagep, i); } pthread_testcancel();