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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [e/] [ee3409f.ada] - Blame information for rev 294

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- EE3409F.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 THE FILE PARAMETER FOR SET_COL IS OPTIONAL, AND
27
--     THAT THE FUNCTION IS THEN APPLIED TO THE CURRENT DEFAULT
28
--     OUTPUT FILE.
29
 
30
-- APPLICABILITY CRITERIA:
31
--     THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT
32
--     CREATION OF TEMPORARY TEXT FILES WITH OUT_FILE MODE.
33
 
34
-- PASS/FAIL CRITERIA:
35
--     THIS TEST IS PASSED IF IT EXECUTES, PRINTS TENTATIVELY PASSED,
36
--     AND THE CONTENTS OF THE STANDARD OUTPUT FILE ARE CORRECT.
37
 
38
-- HISTORY:
39
--     ABW 08/26/82
40
--     SPS 09/20/82
41
--     TBN 11/10/86  REVISED TEST TO OUTPUT A NOT_APPLICABLE
42
--                   RESULT WHEN FILES ARE NOT SUPPORTED.
43
--     JLH 08/31/87  CORRECTED EXCEPTION HANDLING, CHECKED FOR
44
--                   USE_ERROR ON DELETE, AND RENAMED FROM
45
--                   CE3409F.ADA.
46
 
47
WITH REPORT;
48
USE REPORT;
49
WITH TEXT_IO;
50
USE TEXT_IO;
51
 
52
PROCEDURE EE3409F IS
53
 
54
     INCOMPLETE : EXCEPTION;
55
     FILE_OUT : FILE_TYPE;
56
     TWO   : POSITIVE_COUNT := POSITIVE_COUNT(IDENT_INT(2));
57
     THREE : POSITIVE_COUNT := POSITIVE_COUNT(IDENT_INT(3));
58
 
59
BEGIN
60
 
61
     TEST ("EE3409F", "CHECK DEFAULT FILE FOR SET_COL");
62
 
63
     BEGIN
64
          CREATE (FILE_OUT);
65
     EXCEPTION
66
          WHEN USE_ERROR =>
67
               NOT_APPLICABLE ("USE_ERROR RAISED ON TEXT CREATE " &
68
                               "FOR TEMPORARY FILES WITH " &
69
                               "OUT_FILE MODE");
70
               RAISE INCOMPLETE;
71
          WHEN OTHERS =>
72
               FAILED ("UNEXPECTED EXCEPTION RAISED ON TEXT CREATE");
73
               RAISE INCOMPLETE;
74
     END;
75
 
76
     SPECIAL_ACTION ("THE NEXT LINE SHOULD BEGIN IN COLUMN TWO");
77
 
78
     SET_COL (TWO);
79
     PUT ("SHOULD BEGIN IN COLUMN TWO");
80
 
81
     IF COL (STANDARD_OUTPUT) /= 28 THEN
82
          FAILED ("SET_COL DOES NOT OPERATE ON THE DEFAULT " &
83
                  "STANDARD_OUTPUT");
84
     END IF;
85
 
86
     NEW_LINE;
87
 
88
     SET_OUTPUT (FILE_OUT);
89
     SET_COL (THREE);
90
     IF COL (CURRENT_OUTPUT) /= THREE THEN
91
          FAILED ("SET_COL DOES NOT OPERATE ON THE DEFAULT " &
92
                  "CURRENT_OUTPUT");
93
     END IF;
94
 
95
     CLOSE (FILE_OUT);
96
 
97
     RESULT;
98
 
99
EXCEPTION
100
     WHEN INCOMPLETE =>
101
          RESULT;
102
 
103
END EE3409F;

powered by: WebSVN 2.1.0

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