summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxcancel/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxcancel/init.c')
-rw-r--r--testsuites/psxtests/psxcancel/init.c4
1 files changed, 4 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);