OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [ce/] [ce3114a.ada] - Blame information for rev 720

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 720 jeremybenn
-- CE3114A.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
-- OBJECTIVE:
26
--     CHECK THAT AN EXTERNAL TEXT FILE CEASES TO EXIST AFTER
27
--     A SUCCESSFUL DELETE.
28
 
29
-- APPLICABILITY CRITERIA:
30
--     THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT
31
--     CREATION AND DELETION OF TEXT FILES.
32
 
33
-- HISTORY:
34
--     SPS 08/25/82
35
--     SPS 11/09/82
36
--     JBG 04/01/83
37
--     EG  05/16/85
38
--     GMT 08/25/87  COMPLETELY REVISED.
39
 
40
WITH REPORT; USE REPORT;
41
WITH TEXT_IO; USE TEXT_IO;
42
 
43
PROCEDURE CE3114A IS
44
BEGIN
45
 
46
     TEST ("CE3114A", "CHECK THAT AN EXTERNAL TEXT FILE CEASES TO " &
47
                      "EXIST AFTER A SUCCESSFUL DELETE");
48
 
49
     DECLARE
50
          FL1, FL2   : FILE_TYPE;
51
          VAR1       : CHARACTER := 'A';
52
          INCOMPLETE : EXCEPTION;
53
     BEGIN
54
          BEGIN
55
               CREATE (FL1, OUT_FILE, LEGAL_FILE_NAME);
56
          EXCEPTION
57
               WHEN USE_ERROR =>
58
                    NOT_APPLICABLE ("USE_ERROR RAISED ON CREATE " &
59
                                    "WITH OUT_FILE MODE - 1");
60
                    RAISE INCOMPLETE;
61
               WHEN NAME_ERROR =>
62
                    NOT_APPLICABLE ("NAME_ERROR RAISED ON CREATE " &
63
                                    "WITH OUT_FILE MODE - 2");
64
                    RAISE INCOMPLETE;
65
               WHEN OTHERS =>
66
                    FAILED ("UNEXPECTED EXCEPTION RAISED ON " &
67
                            "CREATE - 3");
68
                    RAISE INCOMPLETE;
69
          END;
70
 
71
          BEGIN
72
               PUT (FL1, VAR1);   -- THIS PUTS TO THE FILE IF
73
          EXCEPTION               -- IT CAN, NOT NECESSARY FOR
74
               WHEN OTHERS =>     -- THE OBJECTIVE.
75
                    NULL;
76
          END;
77
 
78
          BEGIN
79
               DELETE (FL1);
80
          EXCEPTION
81
               WHEN USE_ERROR =>
82
                    NOT_APPLICABLE ("DELETION OF EXTERNAL TEXT FILES " &
83
                                    "IS NOT SUPPORTED - 4");
84
                    RAISE INCOMPLETE;
85
          END;
86
 
87
          BEGIN
88
               OPEN (FL2, IN_FILE, LEGAL_FILE_NAME);
89
               FAILED ("EXTERNAL TEXT FILE STILL EXISTS AFTER " &
90
                       "A SUCCESSFUL DELETION - 5");
91
          EXCEPTION
92
               WHEN NAME_ERROR =>
93
                    NULL;
94
          END;
95
     EXCEPTION
96
          WHEN INCOMPLETE =>
97
               NULL;
98
     END;
99
 
100
     RESULT;
101
 
102
END CE3114A;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.