diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-28 23:52:46 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-28 23:52:46 +0000 |
commit | 0c07f6950ffe764f3c4ec37924a9921638a7079a (patch) | |
tree | cfbe9fa523c135f01d3b4ce1217ec2d1131a6ca7 /testsuites/psxtests/psxcancel | |
parent | bfd225e917517a10dc697f15d5fb216c386433f4 (diff) |
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.
Diffstat (limited to 'testsuites/psxtests/psxcancel')
-rw-r--r-- | testsuites/psxtests/psxcancel/init.c | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psxcancel/psxcancel.scn | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxcancel/init.c b/testsuites/psxtests/psxcancel/init.c index 72e6ea99c5..7c75a7f4bf 100644 --- a/testsuites/psxtests/psxcancel/init.c +++ b/testsuites/psxtests/psxcancel/init.c @@ -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); diff --git a/testsuites/psxtests/psxcancel/psxcancel.scn b/testsuites/psxtests/psxcancel/psxcancel.scn index 255e9242ce..b51dd73f5f 100644 --- a/testsuites/psxtests/psxcancel/psxcancel.scn +++ b/testsuites/psxtests/psxcancel/psxcancel.scn @@ -3,6 +3,7 @@ Init - pthread_setcancelstate - NULL oldstate - EINVAL Init - pthread_setcancelstate - bad state - EINVAL Init - pthread_setcanceltype - NULL oldtype - EINVAL Init - pthread_setcanceltype - bad type - EINVAL +Init - pthread_cancel - bad ID - EINVAL countTaskDeferred: elapsed time (second): 0 countTaskDeferred: elapsed time (second): 1 countTaskDeferred: elapsed time (second): 2 |