summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-11-28 08:13:02 +0530
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-29 09:18:03 -0600
commit734f91825be48f797daf1a0ed7a93fb2b13f00f6 (patch)
tree7c4ec78981e27c2d7a47b740db3bbd3a3f1d3d3b
parentpsxtmtests_plan.csv: Avoid comma in descriptions (diff)
downloadrtems-734f91825be48f797daf1a0ed7a93fb2b13f00f6.tar.bz2
psxtests: add documentation for psx05
-rw-r--r--testsuites/psxtests/psx05/init.c2
-rw-r--r--testsuites/psxtests/psx05/psx05.doc38
2 files changed, 39 insertions, 1 deletions
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 <chirayudesai1@gmail.com>.
+#
+# 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.