Files
rtems/testsuites/psxtests/psxspin02/psxspin02.doc
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

29 lines
674 B
Plaintext

#
# $Id$
#
# COPYRIGHT (c) 1989-2009.
# On-Line Applications Research Corporation (OAR).
#
# The license and distribution terms for this file may be
# found in the file LICENSE in this distribution or at
# http://www.rtems.com/license/LICENSE.
#
This file describes the directives and concepts tested by this test set.
test set name: psxspin02
directives:
pthread_spin_lock
pthread_spin_trylock
pthread_spin_unlock
concepts:
+ Ensure that attempting to obtain a locked spin lock with
pthread_spin_trylock returns the correct error.
+ Ensure that attempting to release a locked spin lock from a thread which
did not lock it returns the correct error.