diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 00:57:23 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 00:57:23 +0000 |
commit | 532f51ce426bc247b7054ffc64f006f7397d6268 (patch) | |
tree | 672371d581f9567794f08d2eb5e315c3590647e8 /c/src/tests/samples/unlimited/test1.c | |
parent | 2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-532f51ce426bc247b7054ffc64f006f7397d6268.tar.bz2 |
2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* base_mp/node1/.cvsignore: Remove.
* base_mp/node1/Makefile.am: Remove.
* base_mp/node1/base_mp.doc: Remove.
* base_mp/node1/base_mp.scn: Remove.
* base_mp/.cvsignore: Remove.
* base_mp/Makefile.am: Remove.
* base_mp/apptask.c: Remove.
* base_mp/init.c: Remove.
* base_mp/system.h: Remove.
* base_mp/node2/.cvsignore: Remove.
* base_mp/node2/Makefile.am: Remove.
* base_mp/node2/base_mp.doc: Remove.
* base_mp/node2/base_mp.scn: Remove.
* .cvsignore: Remove.
* ChangeLog: Remove.
* Makefile.am: Remove.
* README: Remove.
* configure.ac: Remove.
* sample.am: Remove.
* base_sp/.cvsignore: Remove.
* base_sp/Makefile.am: Remove.
* base_sp/apptask.c: Remove.
* base_sp/base_sp.doc: Remove.
* base_sp/base_sp.scn: Remove.
* base_sp/init.c: Remove.
* base_sp/system.h: Remove.
* cdtest/.cvsignore: Remove.
* cdtest/Makefile.am: Remove.
* cdtest/cdtest.scn: Remove.
* cdtest/init.c: Remove.
* cdtest/main.cc: Remove.
* cdtest/system.h: Remove.
* fileio/.cvsignore: Remove.
* fileio/Makefile.am: Remove.
* fileio/fileio.doc: Remove.
* fileio/init.c: Remove.
* fileio/system.h: Remove.
* hello/.cvsignore: Remove.
* hello/Makefile.am: Remove.
* hello/hello.doc: Remove.
* hello/hello.scn: Remove.
* hello/init.c: Remove.
* hello/system.h: Remove.
* loopback/.cvsignore: Remove.
* loopback/Makefile.am: Remove.
* loopback/README: Remove.
* loopback/init.c: Remove.
* loopback/loopback.scn: Remove.
* minimum/.cvsignore: Remove.
* minimum/Makefile.am: Remove.
* minimum/init.c: Remove.
* minimum/minimum.doc: Remove.
* minimum/minimum.scn: Remove.
* paranoia/.cvsignore: Remove.
* paranoia/Makefile.am: Remove.
* paranoia/init.c: Remove.
* paranoia/paranoia.c: Remove.
* paranoia/paranoia.doc: Remove.
* paranoia/system.h: Remove.
* pppd/.cvsignore: Remove.
* pppd/Makefile-user: Remove.
* pppd/Makefile.am: Remove.
* pppd/README: Remove.
* pppd/init.c: Remove.
* pppd/netconfig.h: Remove.
* pppd/ppp.conf: Remove.
* pppd/pppd.options: Remove.
* pppd/pppdapp.c: Remove.
* pppd/system.h: Remove.
* ticker/.cvsignore: Remove.
* ticker/Makefile.am: Remove.
* ticker/init.c: Remove.
* ticker/system.h: Remove.
* ticker/tasks.c: Remove.
* ticker/ticker.doc: Remove.
* ticker/ticker.scn: Remove.
* unlimited/.cvsignore: Remove.
* unlimited/Makefile.am: Remove.
* unlimited/init.c: Remove.
* unlimited/system.h: Remove.
* unlimited/test1.c: Remove.
* unlimited/test2.c: Remove.
* unlimited/test3.c: Remove.
* unlimited/unlimited.doc: Remove.
* unlimited/unlimited.scn: Remove.
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/samples/unlimited/test1.c | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/c/src/tests/samples/unlimited/test1.c b/c/src/tests/samples/unlimited/test1.c deleted file mode 100644 index 89e46a54a9..0000000000 --- a/c/src/tests/samples/unlimited/test1.c +++ /dev/null @@ -1,106 +0,0 @@ -/* Test1 - * - * This test uses a hack to disable suto-extend then checks to see only the - * requested number of objects are allocated. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1997. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include "system.h" -#include <rtems/score/object.h> -#include <stdio.h> -#include <stdlib.h> - -void test1() -{ - boolean auto_extend; - rtems_status_code result; - rtems_unsigned32 task_count = 0; - Objects_Information *the_information; - - char c1 = 'a'; - char c2 = 'a'; - char c3 = '0'; - char c4 = '0'; - - printf( "\n TEST1 : auto-extend disabled.\n" ); - - /* - * This is a major hack and only recommended for a test. Doing this - * saves having another test. - */ - - the_information = - _Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS]; - auto_extend = the_information->auto_extend; - the_information->auto_extend = FALSE; - - while (task_count < MAX_TASKS) - { - rtems_name name; - - printf(" TEST1 : creating task '%c%c%c%c', ", c1, c2, c3, c4); - - name = rtems_build_name(c1, c2, c3, c4); - - result = rtems_task_create(name, - 10, - RTEMS_MINIMUM_STACK_SIZE, - RTEMS_DEFAULT_ATTRIBUTES, - RTEMS_LOCAL, - &task_id[task_count]); - - if (status_code_bad(result)) - break; - - printf("number = %3i, id = %08x, starting, ", task_count, task_id[task_count]); - - fflush(stdout); - result = rtems_task_start(task_id[task_count], - test_task, - (rtems_task_argument) task_count); - - if (status_code_bad(result)) - break; - - /* - * Update the name. - */ - - NEXT_TASK_NAME(c1, c2, c3, c4); - - task_count++; - } - - if (task_count >= MAX_TASKS) - printf( "\nMAX_TASKS too small for work-space size, please make larger !!\n\n" ); - - if (task_count != (TASK_ALLOCATION_SIZE - 1)) { - printf( " FAIL1 : the number of tasks does not equal the expected size -\n" - " task created = %i, required number = %i\n", - task_count, TASK_ALLOCATION_SIZE); - exit( 1 ); - } - - destory_all_tasks("TEST1"); - - the_information->auto_extend = auto_extend; - - printf( " TEST1 : completed\n" ); -} - - - - - |