From 734f91825be48f797daf1a0ed7a93fb2b13f00f6 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Thu, 28 Nov 2013 08:13:02 +0530 Subject: psxtests: add documentation for psx05 --- testsuites/psxtests/psx05/init.c | 2 +- testsuites/psxtests/psx05/psx05.doc | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 testsuites/psxtests/psx05/psx05.doc diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c index 67300b6480..ef42dd2601 100644 --- a/testsuites/psxtests/psx05/init.c +++ b/testsuites/psxtests/psx05/init.c @@ -140,7 +140,7 @@ void *POSIX_Init( Init_id = pthread_self(); printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id ); - /* tes pthread_mutex_attr_init */ + /* test pthread_mutex_attr_init */ puts( "Init: pthread_mutexattr_init - EINVAL (NULL attr)" ); status = pthread_mutexattr_init( NULL ); diff --git a/testsuites/psxtests/psx05/psx05.doc b/testsuites/psxtests/psx05/psx05.doc new file mode 100644 index 0000000000..151ab32025 --- /dev/null +++ b/testsuites/psxtests/psx05/psx05.doc @@ -0,0 +1,38 @@ +# testsuites/psxtests/psx05/psx05.doc +# COPYRIGHT (c) 1989-2009. +# On-Line Applications Research Corporation (OAR). +# Copyright (c) 2013 Chirayu Desai . +# +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.com/license/LICENSE. +# +This file describes the directives and concepts tested by this test set. + +test set name: psx05 + +directives: ++ pthread_mutexattr_init ++ pthread_mutexattr_destroy ++ pthread_mutexattr_getpshared ++ pthread_mutexattr_setpshared ++ pthread_mutexattr_getprotocol ++ pthread_mutexattr_setprotocol ++ pthread_mutexattr_getprioceiling ++ pthread_mutexattr_setprioceiling ++ pthread_mutex_init ++ pthread_mutex_trylock ++ pthread_mutex_lock ++ pthread_mutex_unlock ++ pthread_mutex_timedlock ++ pthread_mutex_destroy ++ pthread_setschedparam ++ pthread_getschedparam ++ pthread_mutex_getprioceiling + +concepts: + ++ This test makes sure that the above directives work correctly, + by passing valid arguments and making sure they work, and + making sure that NULL or invalid arguments don't work and + return the correct error code. -- cgit v1.2.3