summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-06-03 22:39:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-06-03 22:39:55 +0000
commit2bef691c95f203e090ae54b4be2574e409ae886a (patch)
treed70e77a7bb0cc2d2ffa58ae51914778f8e2023f2 /c
parentnew file (diff)
downloadrtems-2bef691c95f203e090ae54b4be2574e409ae886a.tar.bz2
Added correct contents
Diffstat (limited to 'c')
-rw-r--r--c/src/ada-tests/tmtests/tmck/tmck.adb57
1 files changed, 57 insertions, 0 deletions
diff --git a/c/src/ada-tests/tmtests/tmck/tmck.adb b/c/src/ada-tests/tmtests/tmck/tmck.adb
index e69de29bb2..0750a4d9f3 100644
--- a/c/src/ada-tests/tmtests/tmck/tmck.adb
+++ b/c/src/ada-tests/tmtests/tmck/tmck.adb
@@ -0,0 +1,57 @@
+--
+-- MAIN / BODY
+--
+-- DESCRIPTION:
+--
+-- This is the entry point for Test TMCK of the Single Processor Test Suite.
+--
+-- DEPENDENCIES:
+--
+--
+--
+-- COPYRIGHT (c) 1989-1997.
+-- On-Line Applications Research Corporation (OAR).
+-- Copyright assigned to U.S. Government, 1994.
+--
+-- The license and distribution terms for this file may in
+-- the file LICENSE in this distribution or at
+-- http://www.OARcorp.com/rtems/license.html.
+--
+-- $Id$
+--
+
+with RTEMS;
+with TMTEST;
+with TEST_SUPPORT;
+
+procedure TMCK is
+ INIT_ID : RTEMS.ID;
+ STATUS : RTEMS.STATUS_CODES;
+begin
+
+ RTEMS.TASK_CREATE(
+ RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
+ 1,
+ RTEMS.MINIMUM_STACK_SIZE,
+ RTEMS.NO_PREEMPT,
+ RTEMS.DEFAULT_ATTRIBUTES,
+ INIT_ID,
+ STATUS
+ );
+ TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
+
+
+ RTEMS.TASK_START(
+ INIT_ID,
+ TMTEST.INIT'ACCESS,
+ 0,
+ STATUS
+ );
+ TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
+
+ loop
+ delay 120.0;
+ end loop;
+
+end TMCK;
+