source: rtems/c/src/tests/itrontests/itrontask04/task1.c @ 8fbdf07

4.104.114.84.95
Last change on this file since 8fbdf07 was 9d9a3dd, checked in by Jennifer Averett <Jennifer.Averett@…>, on 11/17/99 at 16:47:58

+ Updated copyright information.

  • Property mode set to 100644
File size: 807 bytes
Line 
1/*  Task_1
2 *
3 *  This routine serves as a test task.  It verifies the task manager.
4 *
5 *  Input parameters:
6 *    argument - task argument
7 *
8 *  Output parameters:  NONE
9 *
10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.OARcorp.com/rtems/license.html.
16 *
17 *  $Id$
18 */
19
20#include "system.h"
21
22/*
23 * XXX - This test requires tasks to suspend self, yet ITRON defines
24 *       this as an error.
25 */
26
27void Task_1()
28{
29  rtems_status_code status;
30
31  while (1) {
32
33    puts( "TA2 - rtems_task_suspend RTEMS_SELF" );
34    status = rtems_task_suspend( RTEMS_SELF );
35    directive_failed( status, "TA2 rtems_task_suspend RTEMS_SELF" );
36
37  }
38}
39
40
41
42
43
44
Note: See TracBrowser for help on using the repository browser.