mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 21:51:49 +08:00
spregion_err01: Remove unneeded fluff copied from sp09
The goal is to shrink the individual tests to have no unneeded resources and to follow the structure of a normal test.
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
|
||||
rtems_tests_PROGRAMS = sp09
|
||||
sp09_SOURCES = init.c delay.c isr.c screen12.c \
|
||||
task1.c task2.c task3.c task4.c \
|
||||
system.h
|
||||
rtems_tests_PROGRAMS = spregion_err01
|
||||
spregion_err01_SOURCES = init.c system.h
|
||||
|
||||
dist_rtems_tests_DATA = sp09.scn
|
||||
dist_rtems_tests_DATA += sp09.doc
|
||||
dist_rtems_tests_DATA = spregion_err01.scn
|
||||
dist_rtems_tests_DATA += spregion_err01.doc
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
@@ -14,11 +12,11 @@ include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
LINK_OBJS = $(sp09_OBJECTS)
|
||||
LINK_LIBS = $(sp09_LDLIBS)
|
||||
LINK_OBJS = $(spregion_err01_OBJECTS)
|
||||
LINK_LIBS = $(spregion_err01_LDLIBS)
|
||||
|
||||
sp09$(EXEEXT): $(sp09_OBJECTS) $(sp09_DEPENDENCIES)
|
||||
@rm -f sp09$(EXEEXT)
|
||||
spregion_err01$(EXEEXT): $(spregion_err01_OBJECTS) $(spregion_err01_DEPENDENCIES)
|
||||
@rm -f spregion_err01$(EXEEXT)
|
||||
$(make-exe)
|
||||
|
||||
include $(top_srcdir)/../automake/local.am
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
/* Delayed_routine
|
||||
*
|
||||
* This routine is used as the timer routine for Timer Manager tests.
|
||||
*
|
||||
* Input parameters:
|
||||
* ignored - this parameter is ignored
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "system.h"
|
||||
|
||||
rtems_timer_service_routine Delayed_routine(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
)
|
||||
{
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,28 +0,0 @@
|
||||
/* Service_routine
|
||||
*
|
||||
* This routine is used as the timer routine for Interrupt Manager tests.
|
||||
*
|
||||
* Input parameters:
|
||||
* ignored - this parameter is ignored
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "system.h"
|
||||
|
||||
rtems_isr Service_routine(
|
||||
rtems_vector_number ignored
|
||||
)
|
||||
{
|
||||
}
|
||||
@@ -1,424 +0,0 @@
|
||||
/* Screen12
|
||||
*
|
||||
* This routine generates error screen 12 for test 9.
|
||||
*
|
||||
* Input parameters: NONE
|
||||
*
|
||||
* Output parameters: NONE
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "system.h"
|
||||
|
||||
void Screen12()
|
||||
{
|
||||
void *segment_address_1;
|
||||
void *segment_address_2;
|
||||
void *segment_address_3;
|
||||
uintptr_t segment_size;
|
||||
rtems_status_code status;
|
||||
Heap_Information_block the_info;
|
||||
|
||||
/* Check invalid name error case */
|
||||
status = rtems_region_create(
|
||||
0,
|
||||
Region_good_area,
|
||||
0x40,
|
||||
32,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Junk_id
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_NAME,
|
||||
"rtems_region_create with illegal name"
|
||||
);
|
||||
puts( "TA1 - rtems_region_create - RTEMS_INVALID_NAME" );
|
||||
|
||||
/* Check NULL starting address error case */
|
||||
status = rtems_region_create(
|
||||
Region_name[ 1 ],
|
||||
NULL,
|
||||
0x40,
|
||||
32,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Junk_id
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_create with NULL address"
|
||||
);
|
||||
puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
/* Invalid size */
|
||||
status = rtems_region_create(
|
||||
Region_name[ 1 ],
|
||||
Region_good_area,
|
||||
0,
|
||||
0,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Junk_id
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_SIZE,
|
||||
"rtems_region_create with illegal size"
|
||||
);
|
||||
puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE" );
|
||||
|
||||
/* Check NULL id error case */
|
||||
status = rtems_region_create(
|
||||
Region_name[ 1 ],
|
||||
Region_good_area,
|
||||
REGION_LENGTH,
|
||||
0x40,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
NULL
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_create with NULL id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
status = rtems_region_create(
|
||||
Region_name[ 1 ],
|
||||
&Region_good_area[ REGION_START_OFFSET ],
|
||||
REGION_LENGTH,
|
||||
0x40,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Region_id[ 1 ]
|
||||
);
|
||||
directive_failed( status, "rtems_region_create" );
|
||||
puts( "TA1 - rtems_region_create - RTEMS_SUCCESSFUL" );
|
||||
|
||||
/* extend NULL address */
|
||||
status = rtems_region_extend(
|
||||
Region_id[ 1 ],
|
||||
NULL,
|
||||
REGION_LENGTH - 1
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_extend with NULL"
|
||||
);
|
||||
puts( "TA1 - rtems_region_extend - NULL address - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
/* extend within heap */
|
||||
status = rtems_region_extend(
|
||||
Region_id[ 1 ],
|
||||
&Region_good_area[ REGION_START_OFFSET ],
|
||||
REGION_LENGTH - 1
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_extend with address in heap"
|
||||
);
|
||||
puts( "TA1 - rtems_region_extend - address within - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
status = rtems_region_create(
|
||||
Region_name[ 1 ],
|
||||
Region_good_area,
|
||||
REGION_LENGTH,
|
||||
0x40,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Junk_id
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_TOO_MANY,
|
||||
"rtems_region_create of too many"
|
||||
);
|
||||
puts( "TA1 - rtems_region_create - RTEMS_TOO_MANY" );
|
||||
|
||||
status = rtems_region_delete( 100 );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_delete with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_delete - unknown RTEMS_INVALID_ID" );
|
||||
|
||||
status = rtems_region_delete( rtems_build_id( 1, 1, 1, 256 ) );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_delete with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_delete - local RTEMS_INVALID_ID" );
|
||||
|
||||
status = rtems_region_ident( 0, &Junk_id );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_NAME,
|
||||
"rtems_region_ident with illegal name"
|
||||
);
|
||||
puts( "TA1 - rtems_region_ident - RTEMS_INVALID_NAME" );
|
||||
|
||||
/* Check get_information errors */
|
||||
status = rtems_region_get_information( Region_id[ 1 ], NULL );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_get_information with NULL information"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_information - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
status = rtems_region_get_information( 100, &the_info );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_get_information with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_information - unknown RTEMS_INVALID_ID" );
|
||||
|
||||
/* Check get_free_information errors */
|
||||
status = rtems_region_get_free_information( Region_id[ 1 ], NULL );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_get_free_information with NULL information"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_free_information - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
status = rtems_region_get_free_information( 100, &the_info );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_get_free_information with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_free_information - unknown RTEMS_INVALID_ID" );
|
||||
|
||||
/* get segment illegal id */
|
||||
status = rtems_region_get_segment(
|
||||
100,
|
||||
0x40,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
&segment_address_1
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_get_segment with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment - RTEMS_INVALID_ID" );
|
||||
|
||||
/* get_segment with NULL param */
|
||||
status = rtems_region_get_segment(
|
||||
Region_id[ 1 ],
|
||||
2,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
NULL
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_get_segment with NULL param"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
/* get_segment with illegal 0 size */
|
||||
status = rtems_region_get_segment(
|
||||
Region_id[ 1 ],
|
||||
0,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
&segment_address_1
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_SIZE,
|
||||
"rtems_region_get_segment with 0 size"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment - 0 size - RTEMS_INVALID_SIZE" );
|
||||
|
||||
/* get_segment with illegal big size */
|
||||
status = rtems_region_get_segment(
|
||||
Region_id[ 1 ],
|
||||
sizeof( Region_good_area ) * 2,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
&segment_address_1
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_SIZE,
|
||||
"rtems_region_get_segment with big size"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment - too big - RTEMS_INVALID_SIZE" );
|
||||
|
||||
status = rtems_region_get_segment(
|
||||
Region_id[ 1 ],
|
||||
REGION_LENGTH / 2,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
&segment_address_1
|
||||
);
|
||||
directive_failed( status, "rtems_region_get_segment" );
|
||||
puts( "TA1 - rtems_region_get_segment - RTEMS_SUCCESSFUL" );
|
||||
|
||||
status = rtems_region_get_segment(
|
||||
Region_id[ 1 ],
|
||||
REGION_LENGTH / 2,
|
||||
RTEMS_NO_WAIT,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
&segment_address_2
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_UNSATISFIED,
|
||||
"rtems_region_get_segment unsatisfied"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment - RTEMS_UNSATISFIED" );
|
||||
|
||||
puts( "TA1 - rtems_region_get_segment - timeout in 3 seconds" );
|
||||
status = rtems_region_get_segment(
|
||||
Region_id[ 1 ],
|
||||
REGION_LENGTH / 2,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
3 * rtems_clock_get_ticks_per_second(),
|
||||
&segment_address_3
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_TIMEOUT,
|
||||
"rtems_region_get_segment timeout"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment - woke up with RTEMS_TIMEOUT" );
|
||||
|
||||
/* Check get_segment_size errors */
|
||||
status = rtems_region_get_segment_size( Region_id[ 1 ], NULL, &segment_size );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_get_segment_size with NULL segment"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment_size - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
status = rtems_region_get_segment_size(
|
||||
Region_id[ 1 ], segment_address_1, NULL
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_get_segment_size with NULL size"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment_size - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
status = rtems_region_get_segment_size(
|
||||
100, segment_address_1, &segment_size
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_get_segment_size with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_get_segment_size - unknown RTEMS_INVALID_ID" );
|
||||
|
||||
status = rtems_region_delete( Region_id[ 1 ] );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_RESOURCE_IN_USE,
|
||||
"rtems_region_delete with buffers in use"
|
||||
);
|
||||
puts( "TA1 - rtems_region_delete - RTEMS_RESOURCE_IN_USE" );
|
||||
|
||||
/* Check resize_segment errors */
|
||||
status = rtems_region_resize_segment(
|
||||
Region_id[ 1 ], segment_address_3, 256, NULL
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_resize_segment with NULL old size"
|
||||
);
|
||||
puts( "TA1 - rtems_region_resize_segment - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
status = rtems_region_resize_segment(
|
||||
Region_id[ 1 ], NULL, 256, &segment_size
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_resize_segment with NULL segment"
|
||||
);
|
||||
puts( "TA1 - rtems_region_resize_segment - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
status = rtems_region_resize_segment(
|
||||
100, segment_address_3, 256, &segment_size
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_resize_segment with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_resize_segment - RTEMS_INVALID_ID" );
|
||||
|
||||
/* Check return_segment errors */
|
||||
status = rtems_region_return_segment( 100, segment_address_1 );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_return_segment with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_return_segment - RTEMS_INVALID_ID" );
|
||||
|
||||
status = rtems_region_return_segment( Region_id[ 1 ], Region_good_area );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_return_segment with illegal segment"
|
||||
);
|
||||
puts( "TA1 - rtems_region_return_segment - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
/*
|
||||
* The following generate internal heap errors. Thus this code
|
||||
* is subject to change if the heap code changes.
|
||||
*/
|
||||
|
||||
puts( "TA1 - rtems_debug_disable - RTEMS_DEBUG_REGION" );
|
||||
rtems_debug_disable( RTEMS_DEBUG_REGION );
|
||||
|
||||
puts( "TA1 - rtems_debug_enable - RTEMS_DEBUG_REGION" );
|
||||
rtems_debug_enable( RTEMS_DEBUG_REGION );
|
||||
|
||||
status = rtems_region_extend(
|
||||
100,
|
||||
Region_good_area,
|
||||
128
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
"rtems_region_extend with illegal id"
|
||||
);
|
||||
puts( "TA1 - rtems_region_extend - RTEMS_INVALID_ID" );
|
||||
|
||||
status = rtems_region_extend(
|
||||
Region_id[ 1 ],
|
||||
&Region_good_area[ REGION_START_OFFSET + 16 ],
|
||||
128
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_extend with illegal starting address"
|
||||
);
|
||||
puts( "TA1 - rtems_region_extend - within heap - RTEMS_INVALID_ADDRESS" );
|
||||
}
|
||||
@@ -1,282 +0,0 @@
|
||||
*** TEST 9 ***
|
||||
INIT - rtems_task_create - priority of 0 - RTEMS_INVALID_PRIORITY
|
||||
INIT - rtems_task_create - priority too high - RTEMS_INVALID_PRIORITY
|
||||
INIT - rtems_task_restart - RTEMS_INCORRECT_STATE
|
||||
TA1 - rtems_task_is_suspended - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_delete - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_get_note - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_task_get_note - RTEMS_INVALID_NUMBER
|
||||
TA1 - rtems_task_get_note - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_get_note - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_ident - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_task_ident - current task RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_ident - global RTEMS_INVALID_NAME
|
||||
TA1 - rtems_task_ident - local RTEMS_INVALID_NAME
|
||||
TA1 - rtems_task_ident - RTEMS_INVALID_NODE
|
||||
TA1 - rtems_task_restart - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_resume - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_resume - RTEMS_INCORRECT_STATE
|
||||
TA1 - rtems_task_set_priority - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_task_set_priority - RTEMS_INVALID_PRIORITY
|
||||
TA1 - rtems_task_set_priority - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_set_note - RTEMS_INVALID_NUMBER
|
||||
TA1 - rtems_task_set_note - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_start - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_start - RTEMS_INCORRECT_STATE
|
||||
TA1 - rtems_task_suspend - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_mode - RTEMS_INVALID_ADDRESS
|
||||
<pause - screen 2>
|
||||
TA1 - rtems_clock_get_tod - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_clock_get_tod - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_clock_get_seconds_since_epoch - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_clock_get_seconds_since_epoch - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_clock_get_uptime - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_clock_get_uptime_timeval
|
||||
TA1 - rtems_clock_get_uptime_seconds
|
||||
TA1 - rtems_clock_get_uptime_nanoseconds
|
||||
TA1 - rtems_clock_get_tod_timeval - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_clock_get_tod_timeval - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_clock_set_nanoseconds_extension - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_clock_set - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_task_wake_when - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_task_wake_when - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_timer_fire_when - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_clock_set - 08:30:45 02/05/1987 - RTEMS_INVALID_CLOCK
|
||||
TA1 - rtems_clock_set - 08:30:45 15/05/1988 - RTEMS_INVALID_CLOCK
|
||||
TA1 - rtems_clock_set - 08:30:45 02/32/1988 - RTEMS_INVALID_CLOCK
|
||||
TA1 - rtems_clock_set - 25:30:45 02/05/1988 - RTEMS_INVALID_CLOCK
|
||||
TA1 - rtems_clock_set - 08:61:45 02/05/1988 - RTEMS_INVALID_CLOCK
|
||||
TA1 - rtems_clock_set - 08:30:61 02/05/1988 - RTEMS_INVALID_CLOCK
|
||||
TA1 - rtems_clock_set - 08:30:45 02/05/1988 - RTEMS_INVALID_CLOCK
|
||||
TA1 - rtems_clock_set - 08:30:45 02/05/1988 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_wake_when - TICKINVALID - sleep about 3 seconds
|
||||
TA1 - rtems_task_wake_when - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_task_wake_when - TICKINVALID - woke up RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_wake_when - 08:30:48 02/05/1961 - RTEMS_INVALID_CLOCK
|
||||
TA1 - rtems_task_wake_when - 25:30:48 02/05/1988 - RTEMS_INVALID_CLOCK
|
||||
TA1 - current time - 08:30:51 02/05/1988
|
||||
TA1 - rtems_task_wake_when - 08:30:51 01/05/1988 - RTEMS_INVALID_CLOCK
|
||||
<pause - screen 3>
|
||||
TA1 - rtems_task_create - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_task_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED
|
||||
TA1 - rtems_task_create - TA2 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_suspend - suspend TA2 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_suspend - suspend TA2 - RTEMS_ALREADY_SUSPENDED
|
||||
TA1 - rtems_task_resume - TA2 resumed - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - TA3 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - 4 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - 5 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - 6 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - 7 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - 8 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - 9 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - 10 created - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_create - 11 - RTEMS_TOO_MANY
|
||||
TA1 - rtems_task_create - RTEMS_MP_NOT_CONFIGURED
|
||||
<pause - screen 4>
|
||||
TA1 - rtems_event_receive - NULL param - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_event_receive - RTEMS_UNSATISFIED ( all conditions )
|
||||
TA1 - rtems_event_receive - RTEMS_UNSATISFIED ( any condition )
|
||||
TA1 - rtems_event_receive - timeout in 3 seconds
|
||||
TA1 - rtems_event_receive - woke up with RTEMS_TIMEOUT
|
||||
TA1 - rtems_event_send - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_wake_after - sleep 1 second - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_clock_set - 08:30:45 02/05/1988 - RTEMS_SUCCESSFUL
|
||||
TA1 - current time - Fri Feb 5 08:30:45 1988
|
||||
|
||||
<pause - screen 5>
|
||||
TA1 - rtems_semaphore_create - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_semaphore_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_semaphore_create - 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_semaphore_create - 3 - RTEMS_TOO_MANY
|
||||
TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER
|
||||
TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED
|
||||
TA1 - rtems_semaphore_delete - RTEMS_INVALID_ID
|
||||
TA1 - rtems_semaphore_delete - local RTEMS_INVALID_ID
|
||||
TA1 - rtems_semaphore_ident - global RTEMS_INVALID_NAME
|
||||
TA1 - rtems_semaphore_ident - local RTEMS_INVALID_NAME
|
||||
TA1 - rtems_semaphore_release - RTEMS_INVALID_ID
|
||||
TA1 - rtems_semaphore_flush - RTEMS_INVALID_ID
|
||||
<pause - screen 6>
|
||||
TA1 - rtems_semaphore_obtain - RTEMS_INVALID_ID
|
||||
TA1 - rtems_semaphore_obtain - got sem 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_semaphore_obtain - RTEMS_UNSATISFIED
|
||||
TA1 - rtems_semaphore_obtain - timeout in 3 seconds
|
||||
TA1 - rtems_semaphore_obtain - woke up with RTEMS_TIMEOUT
|
||||
TA1 - rtems_semaphore_release - RTEMS_NOT_OWNER_OF_RESOURCE
|
||||
TA1 - rtems_semaphore_release - RTEMS_INVALID_ID
|
||||
TA1 - rtems_task_start - start TA2 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_wake_after - yield processor - RTEMS_SUCCESSFUL
|
||||
TA2 - rtems_semaphore_obtain - sem 1 - RTEMS_WAIT FOREVER
|
||||
TA1 - rtems_semaphore_delete - delete sem 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_semaphore_obtain - binary semaphore
|
||||
TA1 - rtems_semaphore_delete - delete sem 2 - RTEMS_RESOURCE_IN_USE
|
||||
TA1 - rtems_task_wake_after - yield processor - RTEMS_SUCCESSFUL
|
||||
TA2 - rtems_semaphore_obtain - woke up with RTEMS_OBJECT_WAS_DELETED
|
||||
TA2 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_delete TA2 - already deleted RTEMS_INVALID_ID
|
||||
<pause - screen 7>
|
||||
TA1 - rtems_message_queue_broadcast - RTEMS_INVALID_ID
|
||||
TA1 - rtems_message_queue_create - NULL Id - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_message_queue_create - count = 0 - RTEMS_INVALID_NUMBER
|
||||
TA1 - rtems_message_queue_create - size = 0 - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_message_queue_create - Q 1 - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED
|
||||
TA1 - rtems_message_queue_create - Q 2 - RTEMS_UNSATISFIED
|
||||
TA1 - rtems_message_queue_create - Q 2 - RTEMS_UNSATISFIED #2
|
||||
TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_create - Q 2 - RTEMS_TOO_MANY
|
||||
TA1 - rtems_message_queue_delete - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_message_queue_delete - local RTEMS_INVALID_ID
|
||||
TA1 - rtems_message_queue_ident - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_message_queue_get_number_pending - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_message_queue_get_number_pending - RTEMS_INVALID_ID
|
||||
TA1 - rtems_message_queue_flush - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_message_queue_flush - RTEMS_INVALID_ID
|
||||
TA1 - rtems_message_queue_receive - RTEMS_INVALID_ID
|
||||
TA1 - rtems_message_queue_receive - Q 1 - RTEMS_INVALID_ADDRESS NULL buffer
|
||||
TA1 - rtems_message_queue_receive - Q 1 - RTEMS_INVALID_ADDRESS NULL size
|
||||
TA1 - rtems_message_queue_receive - Q 1 - RTEMS_UNSATISFIED
|
||||
TA1 - rtems_message_queue_receive - Q 1 - timeout in 3 seconds
|
||||
TA1 - rtems_message_queue_receive - Q 1 - woke up with RTEMS_TIMEOUT
|
||||
TA1 - rtems_message_queue_send - NULL buffer - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_message_queue_send - RTEMS_INVALID_ID
|
||||
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_TOO_MANY
|
||||
TA1 - rtems_message_queue_urgent - NULL buffer - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_message_queue_urgent - RTEMS_INVALID_ID
|
||||
TA1 - rtems_message_queue_broadcast - NULL buffer - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_message_queue_broadcast - too large - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_message_queue_broadcast - NULL count - RTEMS_INVALID_ADDRESS
|
||||
<pause - screen 8>
|
||||
TA1 - rtems_message_queue_delete - Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_TOO_MANY
|
||||
TA1 - rtems_message_queue_delete - Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_create - Q 1 - 3 DEEP - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 3 TO Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_send - BUFFER 4 TO Q 1 - RTEMS_TOO_MANY
|
||||
TA1 - rtems_message_queue_delete - Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_message_queue_create - Q 1 - 3 DEEP - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_start - start TA3 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_wake_after - yield processor - RTEMS_SUCCESSFUL
|
||||
TA3 - rtems_message_queue_receive - Q 1 - RTEMS_WAIT FOREVER
|
||||
TA1 - rtems_message_queue_delete - delete Q 1 - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_task_wake_after - yield processor - RTEMS_SUCCESSFUL
|
||||
TA3 - rtems_message_queue_receive - woke up with RTEMS_OBJECT_WAS_DELETED
|
||||
TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
|
||||
<pause - screen 9>
|
||||
TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER
|
||||
TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_signal_send - RTEMS_INVALID_ID
|
||||
TA1 - rtems_signal_send - RTEMS_INVALID_NUMBER
|
||||
TA1 - rtems_signal_send - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_port_create - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_port_create - bad range - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_port_create - null id - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_port_create - RTEMS_TOO_MANY
|
||||
TA1 - rtems_port_delete - RTEMS_INVALID_ID
|
||||
TA1 - rtems_port_ident - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_port_external_to_internal - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_port_internal_to_external - RTEMS_INVALID_ID
|
||||
TA1 - rtems_port_external_to_internal - RTEMS_INVALID_ADDRESS
|
||||
<pause - screen 10>
|
||||
TA1 - rtems_rate_monotonic_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_rate_monotonic_create - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_rate_monotonic_create - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_rate_monotonic_create - RTEMS_TOO_MANY
|
||||
TA1 - rtems_rate_monotonic_ident - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_rate_monotonic_period - RTEMS_INVALID_ID
|
||||
TA1 - rtems_rate_monotonic_period - local RTEMS_INVALID_ID
|
||||
TA1 - rtems_rate_monotonic_period(RTEMS_PERIOD_STATUS) - RTEMS_NOT_DEFINED
|
||||
TA1 - rtems_rate_monotonic_period - 100 ticks - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_rate_monotonic_period(RTEMS_PERIOD_STATUS) - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_rate_monotonic_period(RTEMS_PERIOD_STATUS) - RTEMS_TIMEOUT
|
||||
TA1 - rtems_rate_monotonic_get_statistics - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_rate_monotonic_get_status - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_rate_monotonic_get_status - RTEMS_INVALID_ID
|
||||
TA1 - rtems_rate_monotonic_cancel - RTEMS_INVALID_ID
|
||||
TA1 - rtems_rate_monotonic_cancel - local RTEMS_INVALID_ID
|
||||
TA1 - rtems_rate_monotonic_cancel - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_rate_monotonic_period - 5 ticks - RTEMS_TIMEOUT
|
||||
TA1 - yielding to TA4
|
||||
TA4 - rtems_rate_monotonic_cancel - RTEMS_NOT_OWNER_OF_RESOURCE
|
||||
TA4 - rtems_rate_monotonic_period - RTEMS_NOT_OWNER_OF_RESOURCE
|
||||
TA4 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_rate_monotonic_delete - RTEMS_INVALID_ID
|
||||
TA1 - rtems_rate_monotonic_delete - local RTEMS_INVALID_ID
|
||||
TA1 - rtems_rate_monotonic_delete - RTEMS_SUCCESSFUL
|
||||
<pause - screen 11>
|
||||
TA1 - rtems_partition_create - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_partition_create - length - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_partition_create - buffer size - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_partition_create - length < buffer size - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_partition_create - buffer size < overhead - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED
|
||||
TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_partition_create - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_partition_delete - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_partition_delete - local RTEMS_INVALID_ID
|
||||
TA1 - rtems_partition_get_buffer - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_partition_get_buffer - RTEMS_INVALID_ID
|
||||
TA1 - rtems_partition_ident - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_partition_return_buffer - RTEMS_INVALID_ID
|
||||
TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_partition_create - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_partition_create - RTEMS_TOO_MANY
|
||||
TA1 - rtems_partition_get_buffer - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_partition_get_buffer - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_partition_get_buffer - RTEMS_UNSATISFIED
|
||||
TA1 - rtems_partition_delete - RTEMS_RESOURCE_IN_USE
|
||||
TA1 - rtems_partition_return_buffer - RTEMS_INVALID_ADDRESS - out of range
|
||||
TA1 - rtems_partition_return_buffer - RTEMS_INVALID_ADDRESS - not on boundary
|
||||
<pause - screen 12>
|
||||
TA1 - rtems_region_create - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_create - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_create - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_region_extend - NULL address - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_extend - address within - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_create - RTEMS_TOO_MANY
|
||||
TA1 - rtems_region_delete - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_delete - local RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_ident - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_region_get_information - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_information - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_get_free_information - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_free_information - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_get_segment - RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_get_segment - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_segment - 0 size - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_region_get_segment - too big - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_region_get_segment - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_region_get_segment - RTEMS_UNSATISFIED
|
||||
TA1 - rtems_region_get_segment - timeout in 3 seconds
|
||||
TA1 - rtems_region_get_segment - woke up with RTEMS_TIMEOUT
|
||||
TA1 - rtems_region_get_segment_size - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_segment_size - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_segment_size - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_delete - RTEMS_RESOURCE_IN_USE
|
||||
TA1 - rtems_region_resize_segment - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_resize_segment - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_resize_segment - RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_return_segment - RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_return_segment - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_debug_disable - RTEMS_DEBUG_REGION
|
||||
TA1 - rtems_debug_enable - RTEMS_DEBUG_REGION
|
||||
TA1 - rtems_region_extend - RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_extend - within heap - RTEMS_INVALID_ADDRESS
|
||||
*** END OF TEST 9 ***
|
||||
@@ -0,0 +1,38 @@
|
||||
*** TEST SPREGION_ERR01 ***
|
||||
TA1 - rtems_region_create - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_create - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_create - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_region_extend - NULL address - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_extend - address within - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_create - RTEMS_TOO_MANY
|
||||
TA1 - rtems_region_delete - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_delete - local RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_ident - RTEMS_INVALID_NAME
|
||||
TA1 - rtems_region_get_information - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_information - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_get_free_information - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_free_information - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_get_segment - RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_get_segment - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_segment - 0 size - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_region_get_segment - too big - RTEMS_INVALID_SIZE
|
||||
TA1 - rtems_region_get_segment - RTEMS_SUCCESSFUL
|
||||
TA1 - rtems_region_get_segment - RTEMS_UNSATISFIED
|
||||
TA1 - rtems_region_get_segment - timeout in 3 seconds
|
||||
TA1 - rtems_region_get_segment - woke up with RTEMS_TIMEOUT
|
||||
TA1 - rtems_region_get_segment_size - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_segment_size - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_get_segment_size - unknown RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_delete - RTEMS_RESOURCE_IN_USE
|
||||
TA1 - rtems_region_resize_segment - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_resize_segment - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_region_resize_segment - RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_return_segment - RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_return_segment - RTEMS_INVALID_ADDRESS
|
||||
TA1 - rtems_debug_disable - RTEMS_DEBUG_REGION
|
||||
TA1 - rtems_debug_enable - RTEMS_DEBUG_REGION
|
||||
TA1 - rtems_region_extend - RTEMS_INVALID_ID
|
||||
TA1 - rtems_region_extend - within heap - RTEMS_INVALID_ADDRESS
|
||||
*** END OF TEST SPREGION_ERR01 ***
|
||||
@@ -1,9 +1,5 @@
|
||||
/* system.h
|
||||
*
|
||||
* This include file contains information that is included in every
|
||||
* function in the test set.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2013.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -13,120 +9,16 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* functions */
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_timer_service_routine Delayed_routine(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_task Task_4(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
rtems_isr Service_routine(
|
||||
rtems_vector_number ignored
|
||||
);
|
||||
|
||||
rtems_timer_service_routine Io_during_interrupt(
|
||||
rtems_id ignored
|
||||
);
|
||||
|
||||
/*void Screen1( void );
|
||||
|
||||
void Screen2( void );
|
||||
|
||||
void Screen3( void );
|
||||
|
||||
void Screen4( void );
|
||||
|
||||
void Screen5( void );
|
||||
|
||||
void Screen6( void );
|
||||
|
||||
void Screen7( void );
|
||||
|
||||
void Screen8( void );
|
||||
|
||||
void Screen9( void );
|
||||
|
||||
void Screen10( void );
|
||||
|
||||
void Screen11( void );*/
|
||||
|
||||
void Screen12( void );
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 10
|
||||
#define CONFIGURE_MAXIMUM_TIMERS 1
|
||||
#define CONFIGURE_MAXIMUM_SEMAPHORES 2
|
||||
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
|
||||
#define CONFIGURE_MAXIMUM_PARTITIONS 1
|
||||
#define CONFIGURE_MAXIMUM_TASKS 1
|
||||
#define CONFIGURE_MAXIMUM_REGIONS 1
|
||||
#define CONFIGURE_MAXIMUM_PERIODS 1
|
||||
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 0
|
||||
#define CONFIGURE_TICKS_PER_TIMESLICE 100
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_EXTRA_TASK_STACKS (20 * RTEMS_MINIMUM_STACK_SIZE)
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* global variables */
|
||||
|
||||
TEST_EXTERN rtems_id Task_id[ 11 ]; /* array of task ids */
|
||||
TEST_EXTERN rtems_name Task_name[ 11 ]; /* array of task names */
|
||||
|
||||
TEST_EXTERN rtems_name Semaphore_name[ 4 ]; /* array of semaphore names */
|
||||
TEST_EXTERN rtems_id Semaphore_id[ 4 ]; /* array of semaphore ids */
|
||||
|
||||
TEST_EXTERN rtems_name Queue_name[ 3 ]; /* array of queue names */
|
||||
TEST_EXTERN rtems_id Queue_id[ 3 ]; /* array of queue ids */
|
||||
|
||||
TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
|
||||
TEST_EXTERN rtems_id Partition_id[ 2 ]; /* array of partition ids */
|
||||
|
||||
TEST_EXTERN rtems_name Region_name[ 2 ]; /* array of region names */
|
||||
TEST_EXTERN rtems_id Region_id[ 2 ]; /* array of region ids */
|
||||
|
||||
TEST_EXTERN rtems_name Port_name[ 2 ]; /* array of port names */
|
||||
TEST_EXTERN rtems_id Port_id[ 2 ]; /* array of port ids */
|
||||
|
||||
TEST_EXTERN rtems_name Period_name[ 2 ]; /* array of period names */
|
||||
TEST_EXTERN rtems_id Period_id[ 2 ]; /* array of period ids */
|
||||
|
||||
TEST_EXTERN rtems_id Junk_id; /* id used to return errors */
|
||||
|
||||
#define Internal_port_area (void *) 0x00001000
|
||||
#define External_port_area (void *) 0x00002000
|
||||
|
||||
TEST_EXTERN uint8_t Partition_good_area[256] CPU_STRUCTURE_ALIGNMENT;
|
||||
#define Partition_bad_area (void *) 0x00000005
|
||||
|
||||
TEST_EXTERN uint32_t Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
|
||||
#define Region_bad_area (void *) 0x00000005
|
||||
#define REGION_START_OFFSET 1024
|
||||
#define REGION_LENGTH 512
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
/* Task_1
|
||||
*
|
||||
* This task generates all possible errors for the RTEMS executive.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "system.h"
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_test_pause_and_screen_number( 12 );
|
||||
|
||||
Screen12();
|
||||
|
||||
puts( "*** END OF TEST 9 ***" );
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
/* Task_2
|
||||
*
|
||||
* This routine serves as a test task. Its only purpose is to generate the
|
||||
* error where a semaphore is deleted while a task is waiting for it.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "system.h"
|
||||
|
||||
rtems_task Task_2(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
|
||||
puts( "TA2 - rtems_semaphore_obtain - sem 1 - RTEMS_WAIT FOREVER" );
|
||||
status = rtems_semaphore_obtain(
|
||||
Semaphore_id[ 1 ],
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_OBJECT_WAS_DELETED,
|
||||
"rtems_semaphore_obtain waiting to be deleted"
|
||||
);
|
||||
puts(
|
||||
"TA2 - rtems_semaphore_obtain - woke up with RTEMS_OBJECT_WAS_DELETED"
|
||||
);
|
||||
|
||||
puts( "TA2 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL" );
|
||||
status = rtems_task_delete( RTEMS_SELF );
|
||||
directive_failed( status, "rtems_task_delete of TA2" );
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
/* Task_3
|
||||
*
|
||||
* This routine serves as a test task. Its only purpose in life is to
|
||||
* generate the error where a message queue is deleted while a task
|
||||
* is waiting there for a message.
|
||||
*
|
||||
* Input parameters:
|
||||
* argument - task argument
|
||||
*
|
||||
* Output parameters: NONE
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "system.h"
|
||||
|
||||
rtems_task Task_3(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
long buffer[ 4 ];
|
||||
size_t size;
|
||||
|
||||
puts( "TA3 - rtems_message_queue_receive - Q 1 - RTEMS_WAIT FOREVER" );
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])buffer,
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_OBJECT_WAS_DELETED,
|
||||
"rtems_message_queue_receive waiting to be deleted"
|
||||
);
|
||||
puts(
|
||||
"TA3 - rtems_message_queue_receive - woke up with RTEMS_OBJECT_WAS_DELETED"
|
||||
);
|
||||
|
||||
puts( "TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL" );
|
||||
status = rtems_task_delete( RTEMS_SELF );
|
||||
directive_failed( status, "rtems_task_delete of TA3" );
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
/* Task_4
|
||||
*
|
||||
* This routine serves as a test task. Its only purpose in life is to
|
||||
* generate the error where a rate monotonic period is accessed by a
|
||||
* task other than its creator.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "system.h"
|
||||
|
||||
rtems_task Task_4(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
rtems_status_code status;
|
||||
|
||||
status = rtems_rate_monotonic_cancel( Period_id[ 1 ] );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_NOT_OWNER_OF_RESOURCE,
|
||||
"rtems_rate_monotonic_cancel not the owner"
|
||||
);
|
||||
puts( "TA4 - rtems_rate_monotonic_cancel - RTEMS_NOT_OWNER_OF_RESOURCE" );
|
||||
|
||||
status = rtems_rate_monotonic_period( Period_id[ 1 ], 5 );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_NOT_OWNER_OF_RESOURCE,
|
||||
"rtems_rate_monotonic_period not the owner"
|
||||
);
|
||||
puts( "TA4 - rtems_rate_monotonic_period - RTEMS_NOT_OWNER_OF_RESOURCE" );
|
||||
|
||||
puts( "TA4 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL" );
|
||||
status = rtems_task_delete( RTEMS_SELF );
|
||||
directive_failed( status, "rtems_task_delete of TA4" );
|
||||
}
|
||||
Reference in New Issue
Block a user