diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-09-01 14:16:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-09-02 14:05:02 +0200 |
commit | 3b3d1489e409d451b4e7ffabd706d0205f400def (patch) | |
tree | 6c7e25427190f5f8de8bdae99e964cc4023c21ae /testsuites/psxtests/psxcancel | |
parent | psxtests/psxcancel: Check return status (diff) | |
download | rtems-3b3d1489e409d451b4e7ffabd706d0205f400def.tar.bz2 |
posix: glibc compatibility
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxcancel/init.c | 8 | ||||
-rw-r--r-- | testsuites/psxtests/psxcancel/psxcancel.scn | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/testsuites/psxtests/psxcancel/init.c b/testsuites/psxtests/psxcancel/init.c index 2007529d42..4af4e76652 100644 --- a/testsuites/psxtests/psxcancel/init.c +++ b/testsuites/psxtests/psxcancel/init.c @@ -95,17 +95,17 @@ void *countTaskAsync(void *ignored) TEST_BEGIN(); /* generate some error conditions */ - puts( "Init - pthread_setcancelstate - NULL oldstate - EINVAL" ); + puts( "Init - pthread_setcancelstate - NULL oldstate" ); sc = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); - fatal_posix_service_status( sc, EINVAL, "cancel state EINVAL" ); + fatal_posix_service_status( sc, 0, "cancel state NULL" ); puts( "Init - pthread_setcancelstate - bad state - EINVAL" ); sc = pthread_setcancelstate(12, &old); fatal_posix_service_status( sc, EINVAL, "cancel state EINVAL" ); - puts( "Init - pthread_setcanceltype - NULL oldtype - EINVAL" ); + puts( "Init - pthread_setcanceltype - NULL oldtype" ); sc = pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL); - fatal_posix_service_status( sc, EINVAL, "cancel type EINVAL" ); + fatal_posix_service_status( sc, 0, "cancel type NULL" ); puts( "Init - pthread_setcanceltype - bad type - EINVAL" ); sc = pthread_setcanceltype(12, &old); diff --git a/testsuites/psxtests/psxcancel/psxcancel.scn b/testsuites/psxtests/psxcancel/psxcancel.scn index b51dd73f5f..7bc9498b01 100644 --- a/testsuites/psxtests/psxcancel/psxcancel.scn +++ b/testsuites/psxtests/psxcancel/psxcancel.scn @@ -1,7 +1,7 @@ -*** POSIX CANCEL TEST *** -Init - pthread_setcancelstate - NULL oldstate - EINVAL +*** BEGIN OF TEST PSXCANCEL *** +Init - pthread_setcancelstate - NULL oldstate Init - pthread_setcancelstate - bad state - EINVAL -Init - pthread_setcanceltype - NULL oldtype - EINVAL +Init - pthread_setcanceltype - NULL oldtype Init - pthread_setcanceltype - bad type - EINVAL Init - pthread_cancel - bad ID - EINVAL countTaskDeferred: elapsed time (second): 0 |