diff options
Diffstat (limited to 'testsuites/sptests/spratemon_err01/init.c')
-rw-r--r-- | testsuites/sptests/spratemon_err01/init.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testsuites/sptests/spratemon_err01/init.c b/testsuites/sptests/spratemon_err01/init.c new file mode 100644 index 0000000000..2243da52f6 --- /dev/null +++ b/testsuites/sptests/spratemon_err01/init.c @@ -0,0 +1,42 @@ +/* + * COPYRIGHT (c) 2014. + * 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 + +#define CONFIGURE_INIT +#include "system.h" + +const char rtems_test_name[] = "SP RATE MONOTONIC ERROR 01"; + +rtems_task Init( + rtems_task_argument argument +) +{ + rtems_status_code status; + + TEST_BEGIN(); + Task_name[ 4 ] = rtems_build_name( 'T', 'A', '4', ' ' ); + Period_name[ 1 ] = rtems_build_name( 'T', 'M', '1', ' ' ); + + status = rtems_task_create( + Task_name[ 4 ], + 1, + RTEMS_MINIMUM_STACK_SIZE, + RTEMS_DEFAULT_MODES, + RTEMS_DEFAULT_ATTRIBUTES, + &Task_id[ 4 ] + ); + directive_failed( status, "rtems_task_create of TA4" ); + puts( "TA1 - rtems_task_create - 4 created - RTEMS_SUCCESSFUL" ); + + Screen10(); + TEST_END(); +} |