commit
8c44c82723
|
@ -34,6 +34,7 @@ static void *ThreadFuncTest(void *arg)
|
||||||
{
|
{
|
||||||
printf("Subthread starting infinite loop\n");
|
printf("Subthread starting infinite loop\n");
|
||||||
while (1) {
|
while (1) {
|
||||||
|
pthread_testcancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,6 +81,9 @@ static int ClockTest(void)
|
||||||
ret = ThreadClock("Subthread CPU time: ", clockid);
|
ret = ThreadClock("Subthread CPU time: ", clockid);
|
||||||
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
|
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
|
||||||
|
|
||||||
|
ret = pthread_cancel(thread);
|
||||||
|
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue