Lines Matching refs:cnt
38 size_t cnt; in do_test() local
39 for (cnt = 0; cnt < ntest_tf; ++cnt) in do_test()
41 if (tests[cnt].only_early) in do_test()
44 if (pthread_barrier_init (&b2, NULL, tests[cnt].nb) != 0) in do_test()
54 if (pthread_create (&th, NULL, tests[cnt].tf, NULL) != 0) in do_test()
56 printf ("create for '%s' test failed\n", tests[cnt].name); in do_test()
75 printf ("cancel for '%s' failed\n", tests[cnt].name); in do_test()
83 printf ("join for '%s' failed\n", tests[cnt].name); in do_test()
89 printf ("thread for '%s' not canceled\n", tests[cnt].name); in do_test()
103 printf ("cleanup handler not called for '%s'\n", tests[cnt].name); in do_test()
110 tests[cnt].name); in do_test()
115 printf ("in-time cancel test of '%s' successful\n", tests[cnt].name); in do_test()
140 for (cnt = 0; cnt < ntest_tf; ++cnt) in do_test()
142 if (pthread_barrier_init (&b2, NULL, tests[cnt].nb) != 0) in do_test()
152 if (pthread_create (&th, NULL, tests[cnt].tf, (void *) 1l) != 0) in do_test()
154 printf ("create for '%s' test failed\n", tests[cnt].name); in do_test()
169 printf ("cancel for '%s' failed\n", tests[cnt].name); in do_test()
185 printf ("join for '%s' failed\n", tests[cnt].name); in do_test()
191 printf ("thread for '%s' not canceled\n", tests[cnt].name); in do_test()
205 printf ("cleanup handler not called for '%s'\n", tests[cnt].name); in do_test()
212 tests[cnt].name); in do_test()
217 printf ("early cancel test of '%s' successful\n", tests[cnt].name); in do_test()