diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-03 20:59:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-03 20:59:49 +0000 |
commit | a88e2dd030d0c258abb7d2ba53efc13fa912d62c (patch) | |
tree | 9b8ff368d4bd5fe258ee72208a42ce2f97ee6daa /testsuites/sptests/sp45 | |
parent | 109ace3a1f0f6f26d974a1ed8e9595aa0eef0885 (diff) |
2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1347/cpukit
* Makefile.am, configure.ac, sp30/resume.c, sp30/task1.c, sp31/delay.c:
Rework Timer Server to ensure that the context allows for blocking,
allocating memory, and acquiring semaphores and mutexes.
* sp45/.cvsignore, sp45/Makefile.am, sp45/sp45.doc, sp45/sp45.scn:
New files.
Diffstat (limited to 'testsuites/sptests/sp45')
-rw-r--r-- | testsuites/sptests/sp45/.cvsignore | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp45/Makefile.am | 28 | ||||
-rw-r--r-- | testsuites/sptests/sp45/sp45.doc | 22 | ||||
-rw-r--r-- | testsuites/sptests/sp45/sp45.scn | 15 |
4 files changed, 67 insertions, 0 deletions
diff --git a/testsuites/sptests/sp45/.cvsignore b/testsuites/sptests/sp45/.cvsignore new file mode 100644 index 0000000000..282522db03 --- /dev/null +++ b/testsuites/sptests/sp45/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/testsuites/sptests/sp45/Makefile.am b/testsuites/sptests/sp45/Makefile.am new file mode 100644 index 0000000000..a1618b3100 --- /dev/null +++ b/testsuites/sptests/sp45/Makefile.am @@ -0,0 +1,28 @@ +## +## $Id$ +## + +MANAGERS = all + +rtems_tests_PROGRAMS = sp45.exe +sp45_exe_SOURCES = init.c + +dist_rtems_tests_DATA = sp45.scn +dist_rtems_tests_DATA += sp45.doc + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(top_srcdir)/../automake/compile.am +include $(top_srcdir)/../automake/leaf.am + +sp45_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) + +AM_CPPFLAGS += -I$(top_srcdir)/../support/include + +LINK_OBJS = $(sp45_exe_OBJECTS) $(sp45_exe_LDADD) +LINK_LIBS = $(sp45_exe_LDLIBS) + +sp45.exe$(EXEEXT): $(sp45_exe_OBJECTS) $(sp45_exe_DEPENDENCIES) + @rm -f sp45.exe$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/sptests/sp45/sp45.doc b/testsuites/sptests/sp45/sp45.doc new file mode 100644 index 0000000000..7a45209a38 --- /dev/null +++ b/testsuites/sptests/sp45/sp45.doc @@ -0,0 +1,22 @@ +# +# $Id$ +# +# COPYRIGHT (c) 1989-2002. +# 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: test44 + +directives: + +concepts: + +allocating memory from a Timer Service Routine fired from a server +delaying in a Timer Service Routine fired from a server diff --git a/testsuites/sptests/sp45/sp45.scn b/testsuites/sptests/sp45/sp45.scn new file mode 100644 index 0000000000..827b1f071a --- /dev/null +++ b/testsuites/sptests/sp45/sp45.scn @@ -0,0 +1,15 @@ + + +*** TEST 45 *** +INIT - rtems_timer_create - creating timer 1 +INIT - timer 1 has id (0x12010001) +INIT - rtems_timer_create - creating timer 2 +INIT - timer 2 has id (0x12010002) +TA1 - rtems_timer_server_fire_after - timer 1 in 1 seconds +TA1 - rtems_task_wake_after - 2 second +TSR: calling malloc +TSR: calling free +TSR: delaying with rtems_task_wake_after +TSR appears to have executed OK +TA1 - timer_deleting - timer 1 +*** END OF TEST 45 *** |