source: rtems/testsuites/psxtests/psxspin02/psxspin02.scn @ 9a4eca5

Last change on this file since 9a4eca5 was 1938cc07, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 20, 2009 at 1:12:25 AM

2009-07-19 Joel Sherrill <joel.sherrill@…>

  • 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.
  • Property mode set to 100644
File size: 332 bytes
Line 
1*** POSIX SPINLOCK TEST 02 ***
2pthread_spin_init( &Spinlock, PTHREAD_PROCESS_PRIVATE ) -- OK
3pthread_spin_lock( &Spinlock ) -- OK
4pthread_spin_trylock( &Spinlock ) -- EBUSY
5pthread_spin_unlock( &Spinlock ) -- EPERM
6pthread_spin_unlock( &Spinlock ) -- OK
7pthread_spin_destroy( &Spinlock ) -- OK
8*** END OF POSIX SPINLOCK TEST 02 ***
Note: See TracBrowser for help on using the repository browser.