Files
rtems/testsuites/psxtests/psxspin02/psxspin02.scn
T
Joel Sherrill 1938cc07df 2009-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add psxspin02 to exercise case where
	trylock is unable to obtain the spinlock and that attempting to
	unlock a spinlock from a thread which did not lock it works as
	expected.
	* psxspin02/.cvsignore, psxspin02/Makefile.am, psxspin02/main.c,
	psxspin02/psxspin02.doc, psxspin02/psxspin02.scn, psxspin02/test.c:
	New files.
2009-07-20 01:12:25 +00:00

9 lines
332 B
Plaintext

*** POSIX SPINLOCK TEST 02 ***
pthread_spin_init( &Spinlock, PTHREAD_PROCESS_PRIVATE ) -- OK
pthread_spin_lock( &Spinlock ) -- OK
pthread_spin_trylock( &Spinlock ) -- EBUSY
pthread_spin_unlock( &Spinlock ) -- EPERM
pthread_spin_unlock( &Spinlock ) -- OK
pthread_spin_destroy( &Spinlock ) -- OK
*** END OF POSIX SPINLOCK TEST 02 ***