summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spratemon_err01/init.c
diff options
context:
space:
mode:
authorBjorn Larsson <bjornlarsson@oarcorp.com>2014-03-25 09:13:03 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2014-03-28 12:32:10 -0500
commit9c88bc6e80fd40115fdf7ede3cef50264d656ee6 (patch)
treea898abae52506e6f3b6ca0b5d7059043593f811b /testsuites/sptests/spratemon_err01/init.c
parentsamples/base_mp: Include missing header file (diff)
downloadrtems-9c88bc6e80fd40115fdf7ede3cef50264d656ee6.tar.bz2
spratemon_err01: New test split from sp09.
Diffstat (limited to 'testsuites/sptests/spratemon_err01/init.c')
-rw-r--r--testsuites/sptests/spratemon_err01/init.c42
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();
+}