diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-08 18:27:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-08 18:27:29 +0000 |
commit | c8f8ffdd086af4e70ed6892fb4ee135acfc7505a (patch) | |
tree | 499365f213e2aad72fedf5db96092d934b02790b /testsuites/sptests/sp40/init.c | |
parent | 2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-c8f8ffdd086af4e70ed6892fb4ee135acfc7505a.tar.bz2 |
2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add sp40 to test some cases of dynamic
driver registration.
* sp40/.cvsignore, sp40/Makefile.am, sp40/init.c, sp40/sp40.scn,
sp40/system.h: New files.
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/sp40/init.c | 38 |
1 files changed, 38 insertions, 0 deletions
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 ); +} |