[rtems commit] psxtests: add documentation for psx05
Joel Sherrill
joel at rtems.org
Fri Nov 29 15:11:34 UTC 2013
Module: rtems
Branch: master
Commit: 734f91825be48f797daf1a0ed7a93fb2b13f00f6
Changeset: http://git.rtems.org/rtems/commit/?id=734f91825be48f797daf1a0ed7a93fb2b13f00f6
Author: Chirayu Desai <cdesai at cyanogenmod.org>
Date: Thu Nov 28 08:31:02 2013 +0530
psxtests: add documentation for psx05
---
testsuites/psxtests/psx05/init.c | 2 +-
testsuites/psxtests/psx05/psx05.doc | 38 +++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 1 deletions(-)
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index 67300b6..ef42dd2 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 0000000..151ab32
--- /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 at 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.
More information about the vc
mailing list