2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com>

* psxcancel/init.c, psxcancel/psxcancel.scn, psxcancel01/init.c,
	psxcancel01/psxcancel01.scn: Add missing pthread cancellation test
	cases.
This commit is contained in:
Joel Sherrill
2009-09-28 23:52:46 +00:00
parent bfd225e917
commit 0c07f6950f
5 changed files with 79 additions and 31 deletions

View File

@@ -91,6 +91,10 @@ void *countTaskAsync(void *ignored)
sc = pthread_setcanceltype(12, &old);
fatal_posix_service_status( sc, EINVAL, "cancel type EINVAL" );
puts( "Init - pthread_cancel - bad ID - EINVAL" );
sc = pthread_cancel(0x100);
fatal_posix_service_status( sc, EINVAL, "cancel bad Id" );
/* Start countTask deferred */
{
sc = pthread_create(&task, NULL, countTaskDeferred, &taskparameter);