source: rtems/testsuites/itrontests/itrontask04/task1.c @ ac0ba842

4.104.114.84.95
Last change on this file since ac0ba842 was e099180, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/99 at 23:27:05

Merged tests from Task group.

  • Property mode set to 100644
File size: 856 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-1998.
11 *  On-Line Applications Research Corporation (OAR).
12 *  Copyright assigned to U.S. Government, 1994.
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.OARcorp.com/rtems/license.html.
17 *
18 *  $Id$
19 */
20
21#include "system.h"
22
23/*
24 * XXX - This test requires tasks to suspend self, yet ITRON defines
25 *       this as an error.
26 */
27
28void Task_1()
29{
30  rtems_status_code status;
31
32  while (1) {
33
34    puts( "TA2 - rtems_task_suspend RTEMS_SELF" );
35    status = rtems_task_suspend( RTEMS_SELF );
36    directive_failed( status, "TA2 rtems_task_suspend RTEMS_SELF" );
37
38  }
39}
40
41
42
43
44
45
Note: See TracBrowser for help on using the repository browser.