source: rtems/testsuites/psxtests/psxspin01/psxspin01.scn @ d0beb9b

4.115
Last change on this file since d0beb9b was d0beb9b, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 18, 2013 at 4:54:46 PM

Misc tests: Fix scn files and adjust output

  • Property mode set to 100644
File size: 1.4 KB
Line 
1*** POSIX SPINLOCK TEST 01 ***
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 ) -- already unlocked OK
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_lock( &Spinlock ) -- OK
27pthread_spin_unlock( &Spinlock ) from Thread -- OK
28pthread_spin_destroy( &Spinlock ) -- EBUSY
29pthread_spin_unlock( &Spinlock ) -- OK
30pthread_spin_destroy( &Spinlock ) -- OK
31*** END OF POSIX SPINLOCK TEST 01 ***
Note: See TracBrowser for help on using the repository browser.