forked from Imagelibrary/rtems
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user