summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-13 14:59:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-17 08:42:10 +0200
commite34b7a8d4021ac451bdd8bad5b1a1be30c9897f0 (patch)
treeff931d65c269046b5707406cb4ed8e471348af0d /testsuites
parentRFS: Fix resource leak (diff)
downloadrtems-e34b7a8d4021ac451bdd8bad5b1a1be30c9897f0.tar.bz2
posix: Fix return status of pthread_cancel()
POSIX recommends ESRCH in case no thread exists for the specified identifier. Update #2713.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/psxcancel/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxcancel/init.c b/testsuites/psxtests/psxcancel/init.c
index 96341f100a..6286c6587a 100644
--- a/testsuites/psxtests/psxcancel/init.c
+++ b/testsuites/psxtests/psxcancel/init.c
@@ -91,9 +91,9 @@ 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" );
+ puts( "Init - pthread_cancel - bad ID - ESRCH" );
sc = pthread_cancel(0x100);
- fatal_posix_service_status( sc, EINVAL, "cancel bad Id" );
+ fatal_posix_service_status( sc, ESRCH, "cancel bad Id" );
/* Start countTask deferred */
{