diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-25 08:37:28 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-25 12:43:54 +0200 |
commit | 9ec7d492b951efec32520bff7106e21e16e9c74d (patch) | |
tree | 95d49541ccbc8948b757dd1f0100335472d17371 /testsuites/psxtests/psxspin01/psxspin01.scn | |
parent | score: Move thread queue MP callout to context (diff) | |
download | rtems-9ec7d492b951efec32520bff7106e21e16e9c74d.tar.bz2 |
posix: Fix pthread_spin_unlock() error status
Close #2719.
Diffstat (limited to 'testsuites/psxtests/psxspin01/psxspin01.scn')
-rw-r--r-- | testsuites/psxtests/psxspin01/psxspin01.scn | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxspin01/psxspin01.scn b/testsuites/psxtests/psxspin01/psxspin01.scn index 87ea2dbdbb..5c0e752969 100644 --- a/testsuites/psxtests/psxspin01/psxspin01.scn +++ b/testsuites/psxtests/psxspin01/psxspin01.scn @@ -1,4 +1,4 @@ -*** POSIX SPINLOCK TEST 01 *** +*** BEGIN OF TEST PSXSPIN 1 *** pthread_spin_init( NULL, PTHREAD_PROCESS_PRIVATE ) -- EINVAL pthread_spin_init( NULL, PTHREAD_PROCESS_SHARED ) -- EINVAL pthread_spin_init( &spinlock, 0x1234 ) -- EINVAL @@ -14,7 +14,7 @@ pthread_spin_lock( &spinlock ) -- EINVAL pthread_spin_trylock( &spinlock ) -- EINVAL pthread_spin_unlock( &spinlock ) -- EINVAL pthread_spin_destroy( &spinlock ) -- EINVAL -pthread_spin_unlock( &Spinlock ) -- already unlocked OK +pthread_spin_unlock( &Spinlock ) -- EPERM pthread_spin_lock( &Spinlock ) -- OK pthread_spin_lock( &Spinlock ) -- EDEADLK pthread_spin_trylock( &Spinlock ) -- EDEADLK @@ -23,9 +23,10 @@ pthread_spin_trylock( &Spinlock ) -- OK pthread_spin_unlock( &Spinlock ) -- OK pthread_spin_lock( &Spinlock ) from Thread -- OK sleep to allow main thread to run +pthread_spin_unlock( &Spinlock ) -- EPERM pthread_spin_lock( &Spinlock ) -- OK pthread_spin_unlock( &Spinlock ) from Thread -- OK pthread_spin_destroy( &Spinlock ) -- EBUSY pthread_spin_unlock( &Spinlock ) -- OK pthread_spin_destroy( &Spinlock ) -- OK -*** END OF POSIX SPINLOCK TEST 01 *** +*** END OF TEST PSXSPIN 1 *** |