diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-20 18:38:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-20 18:38:28 +0000 |
commit | ceb3cb3b6cb2929b7bf0cac1f62ca06df6768110 (patch) | |
tree | 740d91c42a0d15e5b27af6e76d4a2ed6c156ff79 /testsuites/sptests/spintrcritical07 | |
parent | 2009-07-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-ceb3cb3b6cb2929b7bf0cac1f62ca06df6768110.tar.bz2 |
2009-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, spintrcritical06/init.c: Add first attempt
at hitting interrupt synchronization critical section in thread queue
enqueue priority for reverse insertions.
* spintrcritical07/.cvsignore, spintrcritical07/Makefile.am,
spintrcritical07/spintrcritical07.doc,
spintrcritical07/spintrcritical07.scn: New files.
Diffstat (limited to 'testsuites/sptests/spintrcritical07')
4 files changed, 69 insertions, 0 deletions
diff --git a/testsuites/sptests/spintrcritical07/.cvsignore b/testsuites/sptests/spintrcritical07/.cvsignore new file mode 100644 index 0000000000..282522db03 --- /dev/null +++ b/testsuites/sptests/spintrcritical07/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/testsuites/sptests/spintrcritical07/Makefile.am b/testsuites/sptests/spintrcritical07/Makefile.am new file mode 100644 index 0000000000..a9235c9521 --- /dev/null +++ b/testsuites/sptests/spintrcritical07/Makefile.am @@ -0,0 +1,31 @@ +## +## $Id$ +## + +MANAGERS = all + +rtems_tests_PROGRAMS = spintrcritical07 +spintrcritical07_SOURCES = ../spintrcritical06/init.c \ + ../spintrcritical_support/intrcritical.c + +dist_rtems_tests_DATA = spintrcritical07.scn +dist_rtems_tests_DATA += spintrcritical07.doc + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(top_srcdir)/../automake/compile.am +include $(top_srcdir)/../automake/leaf.am + +spintrcritical07_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) + +AM_CPPFLAGS += -I$(top_srcdir)/../support/include +AM_CPPFLAGS += -I$(top_srcdir)/spintrcritical_support +AM_CPPFLAGS += -DPRIORITY_NO_TIMEOUT_REVERSE + +LINK_OBJS = $(spintrcritical07_OBJECTS) $(spintrcritical07_LDADD) +LINK_LIBS = $(spintrcritical07_LDLIBS) + +spintrcritical07$(EXEEXT): $(spintrcritical07_OBJECTS) $(spintrcritical07_DEPENDENCIES) + @rm -f spintrcritical07$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/sptests/spintrcritical07/spintrcritical07.doc b/testsuites/sptests/spintrcritical07/spintrcritical07.doc new file mode 100644 index 0000000000..cf0184b578 --- /dev/null +++ b/testsuites/sptests/spintrcritical07/spintrcritical07.doc @@ -0,0 +1,31 @@ +# +# $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: spintrcritical07 + +directives: + + _Thread_queue_Enqueue_priority + - interrupt synchronization + rtems_task_restart + _Thread_queue_Extract_priority + +concepts: + ++ Ensure that removing the "search task" from the thread queue while we + are looping and enqueuing another works as expected. This case is where + the TCB we are using as a current pointer is removed from the thread queue + when we flash interrupts WHILE SEARCHING FORWARD. + +NOTE: There is no way to know this case is hit from a test perspective. The + test just runs and we check the coverage report. diff --git a/testsuites/sptests/spintrcritical07/spintrcritical07.scn b/testsuites/sptests/spintrcritical07/spintrcritical07.scn new file mode 100644 index 0000000000..95953f8a9e --- /dev/null +++ b/testsuites/sptests/spintrcritical07/spintrcritical07.scn @@ -0,0 +1,5 @@ +*** TEST INTERRUPT CRITICAL SECTION 07 *** +Init - Trying to generate semaphore release from ISR while blocking +Init - Variation is: Priority/Without Timeout/Multiple Tasks (Forward) +Support - rtems_timer_create - creating timer 1 +*** END OF TEST INTERRUPT CRITICAL SECTION 07 *** |