diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-08 20:26:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-08 20:26:45 +0000 |
commit | a5e620e89d70794cf80a1b77965e6a3ab4127daa (patch) | |
tree | 740a50769494f2b0c7fef7819ec8cc44be6de353 /testsuites/sptests/sp27a | |
parent | 2009-07-08 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-a5e620e89d70794cf80a1b77965e6a3ab4127daa.tar.bz2 |
2009-07-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, sp27/Makefile.am, sp27/init.c,
sp27/sp27.doc, sp27/sp27.scn: Rework sp27 so it can be reinstantiated
as sp27a and test flushing both counting and binary semaphores.
Reformatted.
* sp27a/.cvsignore, sp27a/Makefile.am, sp27a/sp27a.doc,
sp27a/sp27a.scn: New files.
Diffstat (limited to 'testsuites/sptests/sp27a')
-rw-r--r-- | testsuites/sptests/sp27a/.cvsignore | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp27a/Makefile.am | 29 | ||||
-rw-r--r-- | testsuites/sptests/sp27a/sp27a.doc | 25 | ||||
-rw-r--r-- | testsuites/sptests/sp27a/sp27a.scn | 4 |
4 files changed, 60 insertions, 0 deletions
diff --git a/testsuites/sptests/sp27a/.cvsignore b/testsuites/sptests/sp27a/.cvsignore new file mode 100644 index 0000000000..282522db03 --- /dev/null +++ b/testsuites/sptests/sp27a/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/testsuites/sptests/sp27a/Makefile.am b/testsuites/sptests/sp27a/Makefile.am new file mode 100644 index 0000000000..a38cb40397 --- /dev/null +++ b/testsuites/sptests/sp27a/Makefile.am @@ -0,0 +1,29 @@ +## +## $Id$ +## + +MANAGERS = all + +rtems_tests_PROGRAMS = sp27a +sp27a_SOURCES = ../sp27/init.c + +dist_rtems_tests_DATA = sp27a.scn +dist_rtems_tests_DATA += sp27a.doc + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(top_srcdir)/../automake/compile.am +include $(top_srcdir)/../automake/leaf.am + +sp27a_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) + +AM_CPPFLAGS += -I$(top_srcdir)/../support/include +AM_CPPFLAGS += -DUSE_COUNTING_SEMAPHORE + +LINK_OBJS = $(sp27a_OBJECTS) $(sp27a_LDADD) +LINK_LIBS = $(sp27a_LDLIBS) + +sp27a$(EXEEXT): $(sp27a_OBJECTS) $(sp27a_DEPENDENCIES) + @rm -f sp27a$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/sptests/sp27a/sp27a.doc b/testsuites/sptests/sp27a/sp27a.doc new file mode 100644 index 0000000000..2f041f84d3 --- /dev/null +++ b/testsuites/sptests/sp27a/sp27a.doc @@ -0,0 +1,25 @@ +# +# $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: sp27a + +directives: + + rtems_semaphore_create + rtems_semaphore_obtain + rtems_semaphore_flush + +concepts: + ++ Ensure that flushing a binary semaphore with multiple waiting tasks + works as expected. diff --git a/testsuites/sptests/sp27a/sp27a.scn b/testsuites/sptests/sp27a/sp27a.scn new file mode 100644 index 0000000000..221e3e35e1 --- /dev/null +++ b/testsuites/sptests/sp27a/sp27a.scn @@ -0,0 +1,4 @@ +*** TEST 27 *** +Testing binary semaphore flush +Flushed all waiting tasks +*** END OF TEST 27 *** |