diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/libtests/malloctest/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/tests/libtests/malloctest/Makefile.am | 42 | ||||
-rw-r--r-- | c/src/tests/libtests/malloctest/init.c | 113 | ||||
-rw-r--r-- | c/src/tests/libtests/malloctest/malloctest.scn | 468 | ||||
-rw-r--r-- | c/src/tests/libtests/malloctest/system.h | 51 | ||||
-rw-r--r-- | c/src/tests/libtests/malloctest/task1.c | 72 |
6 files changed, 0 insertions, 748 deletions
diff --git a/c/src/tests/libtests/malloctest/.cvsignore b/c/src/tests/libtests/malloctest/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/libtests/malloctest/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/libtests/malloctest/Makefile.am b/c/src/tests/libtests/malloctest/Makefile.am deleted file mode 100644 index 9578e6dd6d..0000000000 --- a/c/src/tests/libtests/malloctest/Makefile.am +++ /dev/null @@ -1,42 +0,0 @@ -## -## $Id$ -## - - -TEST = malloctest - -MANAGERS = io - -C_FILES = init.c task1.c -C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT)) - -H_FILES = system.h -noinst_HEADERS = $(H_FILES) - -DOCTYPES = scn -DOCS = $(DOCTYPES:%=$(TEST).%) - -SRCS = $(DOCS) $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) -OBJS = $(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) - -PRINT_SRCS = $(DOCS) - -PGM = ${ARCH}/$(TEST).exe - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am -include $(top_srcdir)/libtests.am - -# -# (OPTIONAL) Add local stuff here using += -# - -${PGM}: $(OBJS) $(LINK_FILES) - $(make-exe) - -all-local: $(ARCH) $(TMPINSTALL_FILES) - -EXTRA_DIST = $(C_FILES) $(DOCS) - -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/libtests/malloctest/init.c b/c/src/tests/libtests/malloctest/init.c deleted file mode 100644 index 8eae14c0ee..0000000000 --- a/c/src/tests/libtests/malloctest/init.c +++ /dev/null @@ -1,113 +0,0 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is a user initialization task and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. - * 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 -) -{ - rtems_time_of_day time; - rtems_status_code status; - - puts( "\n\n*** MALLOC TEST ***" ); - - build_time( &time, 12, 31, 1988, 9, 0, 0, 0 ); - status = rtems_clock_set( &time ); - directive_failed( status, "rtems_clock_set" ); - - Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ); - Task_name[ 2 ] = rtems_build_name( 'T', 'A', '2', ' ' ); - Task_name[ 3 ] = rtems_build_name( 'T', 'A', '3', ' ' ); - Task_name[ 4 ] = rtems_build_name( 'T', 'A', '4', ' ' ); - Task_name[ 5 ] = rtems_build_name( 'T', 'A', '5', ' ' ); - - status = rtems_task_create( - Task_name[ 1 ], - 1, - TASK_STACK_SIZE, - RTEMS_DEFAULT_MODES, - RTEMS_FLOATING_POINT, - &Task_id[ 1 ] - ); - directive_failed( status, "rtems_task_create of TA1" ); - - status = rtems_task_create( - Task_name[ 2 ], - 1, - TASK_STACK_SIZE, - RTEMS_DEFAULT_MODES, - RTEMS_FLOATING_POINT, - &Task_id[ 2 ] - ); - directive_failed( status, "rtems_task_create of TA2" ); - - status = rtems_task_create( - Task_name[ 3 ], - 1, - TASK_STACK_SIZE, - RTEMS_DEFAULT_MODES, - RTEMS_FLOATING_POINT, - &Task_id[ 3 ] - ); - directive_failed( status, "rtems_task_create of TA3" ); - - status = rtems_task_create( - Task_name[ 4 ], - 1, - TASK_STACK_SIZE, - RTEMS_DEFAULT_MODES, - RTEMS_FLOATING_POINT, - &Task_id[ 4 ] - ); - directive_failed( status, "rtems_task_create of TA4" ); - - status = rtems_task_create( - Task_name[ 5 ], - 1, - TASK_STACK_SIZE, - RTEMS_DEFAULT_MODES, - RTEMS_FLOATING_POINT, - &Task_id[ 5 ] - ); - directive_failed( status, "rtems_task_create of TA5" ); - - status = rtems_task_start( Task_id[ 1 ], Task_1_through_5, 0 ); - directive_failed( status, "rtems_task_start of TA1" ); - - status = rtems_task_start( Task_id[ 2 ], Task_1_through_5, 0 ); - directive_failed( status, "rtems_task_start of TA2" ); - - status = rtems_task_start( Task_id[ 3 ], Task_1_through_5, 0 ); - directive_failed( status, "rtems_task_start of TA3" ); - - status = rtems_task_start( Task_id[ 4 ], Task_1_through_5, 0 ); - directive_failed( status, "rtems_task_start of TA4" ); - - status = rtems_task_start( Task_id[ 5 ], Task_1_through_5, 0 ); - directive_failed( status, "rtems_task_start of TA5" ); - - status = rtems_task_delete( RTEMS_SELF ); - directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); -} diff --git a/c/src/tests/libtests/malloctest/malloctest.scn b/c/src/tests/libtests/malloctest/malloctest.scn deleted file mode 100644 index 1e75d9a8f7..0000000000 --- a/c/src/tests/libtests/malloctest/malloctest.scn +++ /dev/null @@ -1,468 +0,0 @@ -*** MALLOC TEST *** -TA1 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 513 bytes -TA2 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 513 bytes -TA3 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 513 bytes -TA4 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 513 bytes -TA5 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 513 bytes -TA1 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 175 bytes -TA2 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 175 bytes -TA1 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 308 bytes -TA3 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 175 bytes -TA1 - rtems_clock_get - 09:00:00 12/31/1988 -mallocing 534 bytes -TA2 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 308 bytes -TA4 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 175 bytes -TA1 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 947 bytes -TA5 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 175 bytes -TA1 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 171 bytes -TA2 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 534 bytes -TA3 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 308 bytes -TA1 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 702 bytes -TA1 - rtems_clock_get - 09:00:01 12/31/1988 -mallocing 226 bytes -TA2 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 947 bytes -TA4 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 308 bytes -TA1 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 494 bytes -TA3 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 534 bytes -TA1 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 124 bytes -TA2 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 171 bytes -TA5 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 308 bytes -TA1 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 83 bytes -TA1 - rtems_clock_get - 09:00:02 12/31/1988 -mallocing 389 bytes -TA2 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 702 bytes -TA4 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 534 bytes -TA3 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 947 bytes -TA1 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 277 bytes -TA1 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 368 bytes -TA2 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 226 bytes -TA1 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 983 bytes -TA5 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 534 bytes -TA3 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 171 bytes -TA1 - rtems_clock_get - 09:00:03 12/31/1988 -mallocing 535 bytes -TA2 - rtems_clock_get - 09:00:04 12/31/1988 -mallocing 494 bytes -TA4 - rtems_clock_get - 09:00:04 12/31/1988 -mallocing 947 bytes -TA1 - rtems_clock_get - 09:00:04 12/31/1988 -mallocing 765 bytes -TA1 - rtems_clock_get - 09:00:04 12/31/1988 -mallocing 646 bytes -TA2 - rtems_clock_get - 09:00:04 12/31/1988 -mallocing 124 bytes -TA3 - rtems_clock_get - 09:00:04 12/31/1988 -mallocing 702 bytes -TA1 - rtems_clock_get - 09:00:04 12/31/1988 -mallocing 767 bytes -TA1 - rtems_clock_get - 09:00:04 12/31/1988 -mallocing 780 bytes -TA2 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 83 bytes -TA4 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 171 bytes -TA5 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 947 bytes -TA1 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 822 bytes -TA3 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 226 bytes -TA1 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 151 bytes -TA2 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 389 bytes -TA1 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 625 bytes -TA1 - rtems_clock_get - 09:00:05 12/31/1988 -mallocing 314 bytes -TA2 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 277 bytes -TA4 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 702 bytes -TA3 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 494 bytes -TA1 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 346 bytes -TA5 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 171 bytes -TA1 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 917 bytes -TA2 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 368 bytes -TA1 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 519 bytes -TA3 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 124 bytes -TA1 - rtems_clock_get - 09:00:06 12/31/1988 -mallocing 401 bytes -TA2 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 983 bytes -TA4 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 226 bytes -TA1 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 606 bytes -TA1 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 785 bytes -TA2 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 535 bytes -TA5 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 702 bytes -TA3 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 83 bytes -TA1 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 931 bytes -TA1 - rtems_clock_get - 09:00:07 12/31/1988 -mallocing 869 bytes -TA2 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 765 bytes -TA4 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 494 bytes -TA1 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 866 bytes -TA3 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 389 bytes -TA1 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 674 bytes -TA2 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 646 bytes -TA1 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 758 bytes -TA5 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 226 bytes -TA1 - rtems_clock_get - 09:00:08 12/31/1988 -mallocing 581 bytes -TA2 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 767 bytes -TA4 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 124 bytes -TA3 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 277 bytes -TA1 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 389 bytes -TA1 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 355 bytes -TA2 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 780 bytes -TA1 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 200 bytes -TA3 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 368 bytes -TA1 - rtems_clock_get - 09:00:09 12/31/1988 -mallocing 826 bytes -TA2 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 822 bytes -TA4 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 83 bytes -TA5 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 494 bytes -TA1 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 415 bytes -TA1 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 463 bytes -TA2 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 151 bytes -TA3 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 983 bytes -TA1 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 979 bytes -TA1 - rtems_clock_get - 09:00:10 12/31/1988 -mallocing 126 bytes -TA2 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 625 bytes -TA4 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 389 bytes -TA1 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 212 bytes -TA5 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 124 bytes -TA3 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 535 bytes -TA1 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 958 bytes -TA2 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 314 bytes -TA1 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 737 bytes -TA1 - rtems_clock_get - 09:00:11 12/31/1988 -mallocing 409 bytes -TA2 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 346 bytes -TA4 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 277 bytes -TA3 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 765 bytes -TA1 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 780 bytes -TA1 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 757 bytes -TA2 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 917 bytes -TA5 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 83 bytes -TA1 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 956 bytes -TA3 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 646 bytes -TA1 - rtems_clock_get - 09:00:12 12/31/1988 -mallocing 28 bytes -TA2 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 519 bytes -TA4 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 368 bytes -TA1 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 318 bytes -TA1 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 756 bytes -TA2 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 401 bytes -TA3 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 767 bytes -TA1 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 242 bytes -TA5 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 389 bytes -TA1 - rtems_clock_get - 09:00:13 12/31/1988 -mallocing 589 bytes -TA2 - rtems_clock_get - 09:00:14 12/31/1988 -mallocing 606 bytes -TA4 - rtems_clock_get - 09:00:14 12/31/1988 -mallocing 983 bytes -TA1 - rtems_clock_get - 09:00:14 12/31/1988 -mallocing 43 bytes -TA3 - rtems_clock_get - 09:00:14 12/31/1988 -mallocing 780 bytes -TA1 - rtems_clock_get - 09:00:14 12/31/1988 -mallocing 956 bytes -TA2 - rtems_clock_get - 09:00:14 12/31/1988 -mallocing 785 bytes -TA1 - rtems_clock_get - 09:00:14 12/31/1988 -mallocing 319 bytes -TA1 - rtems_clock_get - 09:00:14 12/31/1988 -mallocing 59 bytes -TA2 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 931 bytes -TA4 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 535 bytes -TA5 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 277 bytes -TA3 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 822 bytes -TA1 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 441 bytes -TA1 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 915 bytes -TA2 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 869 bytes -TA1 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 572 bytes -TA3 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 151 bytes -TA1 - rtems_clock_get - 09:00:15 12/31/1988 -mallocing 118 bytes -TA2 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 866 bytes -TA4 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 765 bytes -TA1 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 569 bytes -TA5 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 368 bytes -TA1 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 252 bytes -TA2 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 674 bytes -TA3 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 625 bytes -TA1 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 495 bytes -TA1 - rtems_clock_get - 09:00:16 12/31/1988 -mallocing 236 bytes -TA2 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 758 bytes -TA4 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 646 bytes -TA1 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 476 bytes -TA3 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 314 bytes -TA1 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 406 bytes -TA2 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 581 bytes -TA5 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 983 bytes -TA1 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 872 bytes -TA1 - rtems_clock_get - 09:00:17 12/31/1988 -mallocing 426 bytes -TA2 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 389 bytes -TA4 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 767 bytes -TA3 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 346 bytes -TA1 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 358 bytes -TA1 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 381 bytes -TA2 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 355 bytes -TA1 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 43 bytes -TA5 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 535 bytes -TA3 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 917 bytes -TA1 - rtems_clock_get - 09:00:18 12/31/1988 -mallocing 160 bytes -TA2 - rtems_clock_get - 09:00:19 12/31/1988 -mallocing 200 bytes -TA4 - rtems_clock_get - 09:00:19 12/31/1988 -mallocing 780 bytes -TA1 - rtems_clock_get - 09:00:19 12/31/1988 -mallocing 522 bytes -TA1 - rtems_clock_get - 09:00:19 12/31/1988 -mallocing 696 bytes -TA2 - rtems_clock_get - 09:00:19 12/31/1988 -mallocing 826 bytes -TA3 - rtems_clock_get - 09:00:19 12/31/1988 -mallocing 519 bytes -TA1 - rtems_clock_get - 09:00:19 12/31/1988 -mallocing 97 bytes -TA1 - rtems_clock_get - 09:00:19 12/31/1988 -mallocing 400 bytes -TA2 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 415 bytes -TA4 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 822 bytes -TA5 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 765 bytes -TA1 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 773 bytes -TA3 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 401 bytes -TA1 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 244 bytes -TA2 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 463 bytes -TA1 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 342 bytes -TA1 - rtems_clock_get - 09:00:20 12/31/1988 -mallocing 229 bytes -TA2 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 979 bytes -TA4 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 151 bytes -TA3 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 606 bytes -TA1 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 297 bytes -TA5 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 646 bytes -TA1 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 304 bytes -TA2 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 126 bytes -TA1 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 887 bytes -TA3 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 785 bytes -TA1 - rtems_clock_get - 09:00:21 12/31/1988 -mallocing 36 bytes -TA2 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 212 bytes -TA4 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 625 bytes -TA1 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 651 bytes -TA1 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 398 bytes -TA2 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 958 bytes -TA5 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 767 bytes -TA3 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 931 bytes -TA1 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 676 bytes -TA1 - rtems_clock_get - 09:00:22 12/31/1988 -mallocing 732 bytes -TA2 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 737 bytes -TA4 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 314 bytes -TA1 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 937 bytes -TA3 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 869 bytes -TA1 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 233 bytes -TA2 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 409 bytes -TA1 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 838 bytes -TA5 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 780 bytes -TA1 - rtems_clock_get - 09:00:23 12/31/1988 -mallocing 967 bytes -TA2 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 780 bytes -TA4 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 346 bytes -TA3 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 866 bytes -TA1 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 778 bytes -TA1 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 431 bytes -TA2 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 757 bytes -TA1 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 674 bytes -TA3 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 674 bytes -TA1 - rtems_clock_get - 09:00:24 12/31/1988 -mallocing 809 bytes -TA2 - rtems_clock_get - 09:00:25 12/31/1988 -mallocing 956 bytes -TA4 - rtems_clock_get - 09:00:25 12/31/1988 -mallocing 917 bytes -TA5 - rtems_clock_get - 09:00:25 12/31/1988 -mallocing 822 bytes -TA1 - rtems_clock_get - 09:00:25 12/31/1988 -mallocing 158 bytes -*** END OF MALLOC TEST *** diff --git a/c/src/tests/libtests/malloctest/system.h b/c/src/tests/libtests/malloctest/system.h deleted file mode 100644 index d2f55ba9f6..0000000000 --- a/c/src/tests/libtests/malloctest/system.h +++ /dev/null @@ -1,51 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * COPYRIGHT (c) 1989-1999. - * 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> - -/* macros */ - -/* functions */ - -rtems_task Init( - rtems_task_argument argument -); - -rtems_task Task_1_through_5( - rtems_task_argument argument -); - -void blow_stack( void ); - -/* configuration information */ - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE*3) - -#define CONFIGURE_EXTRA_TASK_STACKS ((RTEMS_MINIMUM_STACK_SIZE*2)*5) -#define CONFIGURE_MAXIMUM_TASKS 6 - -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE - -#include <confdefs.h> - -/* global variables */ - -TEST_EXTERN rtems_id Task_id[ 6 ]; /* array of task ids */ -TEST_EXTERN rtems_name Task_name[ 6 ]; /* array of task names */ - -/* end of include file */ diff --git a/c/src/tests/libtests/malloctest/task1.c b/c/src/tests/libtests/malloctest/task1.c deleted file mode 100644 index 575dc5189b..0000000000 --- a/c/src/tests/libtests/malloctest/task1.c +++ /dev/null @@ -1,72 +0,0 @@ -/* task1.c - * - * This set of three tasks do some simple task switching for about - * 15 seconds and then call a routine to "blow the stack". - * - * COPYRIGHT (c) 1989-1999. - * 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 "system.h" -#include <rtems/libcsupport.h> /* for malloc_dump, malloc_walk */ -#include <string.h> /* for memset */ -#include <stdlib.h> - -#define NUM_PASSES 100 - -rtems_task Task_1_through_5( - rtems_task_argument argument -) -{ - int i; - unsigned int passes = 0; - rtems_id tid; - rtems_time_of_day time; - rtems_status_code status; - unsigned char *mem_ptr; - int mem_amt; - - status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid ); - directive_failed( status, "rtems_task_ident" ); - - while (TRUE) - { - if ( passes++ > NUM_PASSES ) { - puts("*** END OF MALLOC TEST ***"); - rtems_test_exit(0); - } - - status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); - directive_failed( status, "rtems_clock_get" ); - - put_name( Task_name[ task_number( tid ) ], FALSE ); - print_time( " - rtems_clock_get - ", &time, "\n" ); - - mem_amt = ((int)((float)rand()*1000.0/(float)RAND_MAX)); - while (!(mem_ptr = malloc ( mem_amt))) { - printf("out of memory... trying again.\n"); - mem_amt = ((int)((float)rand()*1000.0/(float)RAND_MAX)); - } - printf("mallocing %d bytes\n",mem_amt); - memset( mem_ptr, mem_amt, mem_amt ); - malloc_dump(); - malloc_walk(1,FALSE); - status = rtems_task_wake_after( task_number( tid ) * 1 * TICKS_PER_SECOND/4 ); - for (i=0; i < mem_amt; i++) - { - if ( mem_ptr[i] != (mem_amt & 0xff)) - { - printf("failed %d, %d, 0x%x, 0x%x\n",i,mem_amt,mem_ptr[i],mem_amt&0xff); - rtems_test_exit(1); - } - } - directive_failed( status, "rtems_task_wake_after" ); - free( mem_ptr ); - } -} |