source: rtems/testsuites/psxtests/psxspin01/psxspin01.scn @ 3f72dda6

4.11
Last change on this file since 3f72dda6 was 3f72dda6, checked in by Sebastian Huber <sebastian.huber@…>, on May 25, 2016 at 6:37:28 AM

posix: Fix pthread_spin_unlock() error status

Update #2719.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1*** BEGIN OF TEST PSXSPIN 1 ***
2pthread_spin_init( NULL, PTHREAD_PROCESS_PRIVATE ) -- EINVAL
3pthread_spin_init( NULL, PTHREAD_PROCESS_SHARED ) -- EINVAL
4pthread_spin_init( &spinlock, 0x1234 ) -- EINVAL
5pthread_spin_init( &spinlock, PTHREAD_PROCESS_SHARED ) -- EINVAL
6pthread_spin_init( &Spinlock, PTHREAD_PROCESS_PRIVATE ) -- OK
7pthread_spin_init( &spinlock, PTHREAD_PROCESS_PRIVATE ) -- EAGAIN
8pthread_spin_init( &spinlock, PTHREAD_PROCESS_PRIVATE ) -- EAGAIN
9pthread_spin_lock( NULL ) -- EINVAL
10pthread_spin_trylock( NULL ) -- EINVAL
11pthread_spin_unlock( NULL ) -- EINVAL
12pthread_spin_destroy( NULL ) -- EINVAL
13pthread_spin_lock( &spinlock ) -- EINVAL
14pthread_spin_trylock( &spinlock ) -- EINVAL
15pthread_spin_unlock( &spinlock ) -- EINVAL
16pthread_spin_destroy( &spinlock ) -- EINVAL
17pthread_spin_unlock( &Spinlock ) -- EPERM
18pthread_spin_lock( &Spinlock ) -- OK
19pthread_spin_lock( &Spinlock ) -- EDEADLK
20pthread_spin_trylock( &Spinlock ) -- EDEADLK
21pthread_spin_unlock( &Spinlock ) -- OK
22pthread_spin_trylock( &Spinlock ) -- OK
23pthread_spin_unlock( &Spinlock ) -- OK
24pthread_spin_lock( &Spinlock ) from Thread -- OK
25sleep to allow main thread to run
26pthread_spin_unlock( &Spinlock ) -- EPERM
27pthread_spin_lock( &Spinlock ) -- OK
28pthread_spin_unlock( &Spinlock ) from Thread -- OK
29pthread_spin_destroy( &Spinlock ) -- EBUSY
30pthread_spin_unlock( &Spinlock ) -- OK
31pthread_spin_destroy( &Spinlock ) -- OK
32*** END OF TEST PSXSPIN 1 ***
Note: See TracBrowser for help on using the repository browser.