From 5acdede80e4ecdd3521e0d094b46079c37fe0dcb Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Wed, 29 May 2002 23:34:32 +0000 Subject: [PATCH] Change counts a bit so as not to spew out so much junk. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@339 --- tests/pth_cancel1.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); -- 2.47.3