summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxmutexattr01/psxmutexattr01.scn
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-17 16:17:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-17 16:17:14 +0000
commit5d6e8c88fb5fde6806b22e9ef9b635361b29a8a7 (patch)
treed2bc55630a204ba93a2af97eee939da105f1f6f7 /testsuites/psxtests/psxmutexattr01/psxmutexattr01.scn
parentadding lpc24xx BSP parts (diff)
downloadrtems-5d6e8c88fb5fde6806b22e9ef9b635361b29a8a7.tar.bz2
2009-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add test to exercise pthread_mutexattr_gettype and pthread_mutexattr_settype now that the toolset enables the feature. * psxmutexattr01/.cvsignore, psxmutexattr01/Makefile.am, psxmutexattr01/init.c, psxmutexattr01/psxmutexattr01.doc, psxmutexattr01/psxmutexattr01.scn: New files.
Diffstat (limited to 'testsuites/psxtests/psxmutexattr01/psxmutexattr01.scn')
-rw-r--r--testsuites/psxtests/psxmutexattr01/psxmutexattr01.scn23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxmutexattr01/psxmutexattr01.scn b/testsuites/psxtests/psxmutexattr01/psxmutexattr01.scn
new file mode 100644
index 0000000000..d6bcf5f287
--- /dev/null
+++ b/testsuites/psxtests/psxmutexattr01/psxmutexattr01.scn
@@ -0,0 +1,23 @@
+*** POSIX MUTEX ATTRIBUTE TEST 1 ***
+Init - pthread_mutexattr_gettype - attr NULL - EINVAL
+Init - pthread_mutexattr_gettype - type NULL - EINVAL
+Init - pthread_mutexattr_gettype - attr not initialized - EINVAL
+Init - pthread_mutexattr_init - OK
+Init - pthread_mutexattr_gettype - OK
+Init - pthread_mutexattr_settype - type NULL - EINVAL
+Init - pthread_mutexattr_settype - attr not initialized - EINVAL
+Init - pthread_mutexattr_init - OK
+Init - pthread_mutexattr_settype - bad type - EINVAL
+Init - pthread_mutexattr_init - OK
+Init - pthread_mutexattr_settype - PTHREAD_MUTEX_NORMAL - OK
+Init - pthread_mutexattr_gettype - PTHREAD_MUTEX_NORMAL - OK
+Init - pthread_mutexattr_init - OK
+Init - pthread_mutexattr_settype - PTHREAD_MUTEX_RECURSIVE - OK
+Init - pthread_mutexattr_gettype - PTHREAD_MUTEX_RECURSIVE - OK
+Init - pthread_mutexattr_init - OK
+Init - pthread_mutexattr_settype - PTHREAD_MUTEX_ERRORCHECK - OK
+Init - pthread_mutexattr_gettype - PTHREAD_MUTEX_ERRORCHECK - OK
+Init - pthread_mutexattr_init - OK
+Init - pthread_mutexattr_settype - PTHREAD_MUTEX_DEFAULT - OK
+Init - pthread_mutexattr_gettype - PTHREAD_MUTEX_DEFAULT - OK
+*** END OF POSIX MUTEX ATTRIBUTE TEST 1 ***