1-- C94004A.ADA 2 3-- Grant of Unlimited Rights 4-- 5-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, 6-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained 7-- unlimited rights in the software and documentation contained herein. 8-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making 9-- this public release, the Government intends to confer upon all 10-- recipients unlimited rights equal to those held by the Government. 11-- These rights include rights to use, duplicate, release or disclose the 12-- released technical data and computer software in whole or in part, in 13-- any manner and for any purpose whatsoever, and to have or permit others 14-- to do so. 15-- 16-- DISCLAIMER 17-- 18-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR 19-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED 20-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE 21-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE 22-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A 23-- PARTICULAR PURPOSE OF SAID MATERIAL. 24--* 25-- CHECK THAT A MAIN PROGRAM TERMINATES WITHOUT WAITING FOR TASKS THAT 26-- DEPEND ON A LIBRARY PACKAGE AND THAT SUCH TASKS ARE NOT TERMINATED BY 27-- MAIN PROGRAM TERMINATION. 28 29-- CASE A: TASK OBJECT DECLARED IN LIBRARY PACKAGE USED BY MAIN 30-- PROGRAM. 31 32-- JRK 10/8/81 33-- SPS 11/21/82 34-- JBG 12/6/84 35-- JRK 11/21/85 RENAMED FROM C94004A-B.ADA; REVISED ACCORDING TO 36-- AI-00399. 37-- JRK 10/24/86 RENAMED FROM E94004A-B.ADA; REVISED ACCORDING TO 38-- REVISED AI-00399. 39-- PWN 09/11/94 REMOVED PRAGMA PRIORITY FOR ADA 9X. 40 41WITH SYSTEM; USE SYSTEM; 42PACKAGE C94004A_PKG IS 43 44 TASK TYPE TT IS 45 ENTRY E; 46 END TT; 47 48END C94004A_PKG; 49 50with Impdef; 51WITH REPORT; USE REPORT; 52PRAGMA ELABORATE (REPORT); 53PACKAGE BODY C94004A_PKG IS 54 55 TASK BODY TT IS 56 I : INTEGER := IDENT_INT (120); 57 BEGIN 58 ACCEPT E; 59 COMMENT ("DELAY LIBRARY TASK FOR TWO MINUTES"); 60 DELAY DURATION(I) * Impdef.One_Second; 61 -- MAIN PROGRAM SHOULD NOW BE TERMINATED. 62 RESULT; 63 END TT; 64 65END C94004A_PKG; 66 67WITH C94004A_PKG; USE C94004A_PKG; 68PRAGMA ELABORATE (C94004A_PKG); 69PACKAGE C94004A_TASK IS 70 T : TT; 71END; 72 73WITH SYSTEM; USE SYSTEM; 74WITH REPORT; USE REPORT; 75WITH C94004A_TASK; 76PROCEDURE C94004A IS 77 78 79BEGIN 80 TEST ("C94004A", "CHECK THAT A MAIN PROGRAM TERMINATES " & 81 "WITHOUT WAITING FOR TASKS THAT DEPEND " & 82 "ON A LIBRARY PACKAGE AND THAT SUCH TASKS " & 83 "CONTINUE TO EXECUTE"); 84 85 COMMENT ("THE INVOKING SYSTEM'S JOB CONTROL LOG MUST BE " & 86 "EXAMINED TO SEE IF THIS TEST REALLY TERMINATES"); 87 88 C94004A_TASK.T.E; -- ALLOW TASK TO PROCEED. 89 IF C94004A_TASK.T'TERMINATED THEN 90 FAILED ("LIBRARY DECLARED TASK PREMATURELY TERMINATED"); 91 END IF; 92 93 -- RESULT PROCEDURE IS CALLED BY LIBRARY TASK. 94 95END C94004A; 96