diff options
Diffstat (limited to 'testsuites/sptests/sp40')
-rw-r--r-- | testsuites/sptests/sp40/.cvsignore | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp40/Makefile.am | 27 | ||||
-rw-r--r-- | testsuites/sptests/sp40/init.c | 38 | ||||
-rw-r--r-- | testsuites/sptests/sp40/sp40.scn | 0 | ||||
-rw-r--r-- | testsuites/sptests/sp40/system.h | 38 |
5 files changed, 105 insertions, 0 deletions
diff --git a/testsuites/sptests/sp40/.cvsignore b/testsuites/sptests/sp40/.cvsignore new file mode 100644 index 0000000000..282522db03 --- /dev/null +++ b/testsuites/sptests/sp40/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/testsuites/sptests/sp40/Makefile.am b/testsuites/sptests/sp40/Makefile.am new file mode 100644 index 0000000000..ef692123ac --- /dev/null +++ b/testsuites/sptests/sp40/Makefile.am @@ -0,0 +1,27 @@ +## +## $Id$ +## + +MANAGERS = all + +rtems_tests_PROGRAMS = sp40.exe +sp40_exe_SOURCES = init.c system.h + +dist_rtems_tests_DATA = sp40.scn + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(top_srcdir)/../automake/compile.am +include $(top_srcdir)/../automake/leaf.am + +sp40_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) + +AM_CPPFLAGS += -I$(top_srcdir)/../support/include + +LINK_OBJS = $(sp40_exe_OBJECTS) $(sp40_exe_LDADD) +LINK_LIBS = $(sp40_exe_LDLIBS) + +sp40.exe$(EXEEXT): $(sp40_exe_OBJECTS) $(sp40_exe_DEPENDENCIES) + @rm -f sp40.exe$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/sptests/sp40/init.c b/testsuites/sptests/sp40/init.c new file mode 100644 index 0000000000..3c5dd7bd4d --- /dev/null +++ b/testsuites/sptests/sp40/init.c @@ -0,0 +1,38 @@ +/* + * IO Manager Dynamic Registration + * + * COPYRIGHT (c) 1989-2007. + * 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. + * + * $Id$ + */ + +#define TEST_INIT +#include "system.h" + +rtems_task Init( + rtems_task_argument argument +) +{ + puts( "\n\n*** TEST 40 ***" ); + + /* + * Register two drivers to fill up the table + */ + + /* add major = 4 */ + + /* add major = 3 */ + + /* + * Unregister major = 3 to leave slot which is not at + * the end of the Driver Table. + */ + + puts( "*** END OF TEST 40 ***" ); + rtems_test_exit( 0 ); +} diff --git a/testsuites/sptests/sp40/sp40.scn b/testsuites/sptests/sp40/sp40.scn new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/testsuites/sptests/sp40/sp40.scn diff --git a/testsuites/sptests/sp40/system.h b/testsuites/sptests/sp40/system.h new file mode 100644 index 0000000000..f4226a2688 --- /dev/null +++ b/testsuites/sptests/sp40/system.h @@ -0,0 +1,38 @@ +/* system.h + * + * This include file contains information that is included in every + * function in the test set. + * + * COPYRIGHT (c) 1989-2007. + * 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. + * + * $Id$ + */ + +#include <tmacros.h> + +/* functions */ + +rtems_task Init( + rtems_task_argument argument +); + +/* configuration information */ + +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER + +/* more driver slots than are statically configured */ +#define CONFIGURE_MAXIMUM_DRIVERS 4 + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_MAXIMUM_TASKS 1 + +#include <rtems/confdefs.h> + +/* end of include file */ |