summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sptask_err04/task1.c
diff options
context:
space:
mode:
authorBjorn Larsson <bjornlarsson@oarcorp.com>2014-03-28 13:05:57 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2014-03-28 13:09:06 -0500
commitdf367faddb9e927d18859692d1c0bbd613953328 (patch)
treec8759062d0b16561dec87b949a47bcd3da722d9b /testsuites/sptests/sptask_err04/task1.c
parentsptask_err03: New test split from sp09 screen 3. (diff)
downloadrtems-df367faddb9e927d18859692d1c0bbd613953328.tar.bz2
sptests: New tests split from sp09 screen 1 and screen 2.
Split sp09 screen 1 into new test sptask_err04. Split sp09 screen 2 into new tests sptask__err02 and spclock_err01, as well as moving one verification into sptimer_err01.
Diffstat (limited to '')
-rw-r--r--testsuites/sptests/sptask_err04/task1.c (renamed from testsuites/sptests/sp09/screen01.c)21
1 files changed, 16 insertions, 5 deletions
diff --git a/testsuites/sptests/sp09/screen01.c b/testsuites/sptests/sptask_err04/task1.c
index 004e5c5715..022aff9967 100644
--- a/testsuites/sptests/sp09/screen01.c
+++ b/testsuites/sptests/sptask_err04/task1.c
@@ -1,8 +1,13 @@
-/* Screen1
+/* Task_1
*
- * This routine generates error screen 1 for test 9.
+ * This task generates all possible errors for the RTEMS executive.
*
- * COPYRIGHT (c) 1989-2009.
+ * 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
@@ -15,10 +20,12 @@
#endif
#include "system.h"
-
#include <rtems/rtems/tasksimpl.h>
-void Screen1()
+
+rtems_task Task_1(
+ rtems_task_argument argument
+)
{
uint32_t notepad_value;
rtems_id self_id;
@@ -263,4 +270,8 @@ void Screen1()
"rtems_task_mode with NULL param"
);
puts( "TA1 - rtems_task_mode - RTEMS_INVALID_ADDRESS" );
+
+ TEST_END();
+
+ rtems_test_exit( 0 );
}