3 -- Grant of Unlimited Rights
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
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.
26 -- CHECK THAT IS_OPEN RETURNS THE PROPER VALUES FOR FILES OF
27 -- TYPE SEQUENTIAL_IO.
31 -- APPLICABILITY CRITERIA:
32 -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT
36 -- SPW 08/10/87 CREATED ORIGINAL TEST.
38 WITH REPORT
; USE REPORT
;
43 PACKAGE SEQ_IO
IS NEW SEQUENTIAL_IO
(CHARACTER);
45 INCOMPLETE
: EXCEPTION;
46 TEST_FILE_ONE
: SEQ_IO
.FILE_TYPE
;
51 TEST
("CE2103C", "CHECK THAT IS_OPEN RETURNS THE PROPER " &
52 "VALUES FOR FILES OF TYPE SEQUENTIAL_IO");
59 CREATE
(TEST_FILE_ONE
, OUT_FILE
, LEGAL_FILE_NAME
);
62 NOT_APPLICABLE
("USE_ERROR RAISED ON CREATE WITH " &
66 NOT_APPLICABLE
("NAME_ERROR RAISED ON CREATE WITH " &
71 VAL
:= IS_OPEN
(TEST_FILE_ONE
);
74 FAILED
("IS_OPEN RETURNS FALSE AFTER CREATE");
80 CLOSE
(TEST_FILE_ONE
);
81 VAL
:= IS_OPEN
(TEST_FILE_ONE
);
83 FAILED
("IS_OPEN RETURNS TRUE AFTER CLOSE");
91 OPEN
(TEST_FILE_ONE
, IN_FILE
, LEGAL_FILE_NAME
);
94 IF IS_OPEN
(TEST_FILE_ONE
) /= FALSE THEN
95 FAILED
("IS_OPEN GIVES TRUE ON " &
101 VAL
:= IS_OPEN
(TEST_FILE_ONE
);
103 FAILED
("IS_OPEN RETURNS FALSE AFTER OPEN");
111 RESET
(TEST_FILE_ONE
);
117 VAL
:= IS_OPEN
(TEST_FILE_ONE
);
119 FAILED
("IS_OPEN RETURNS FALSE AFTER RESET");
127 DELETE
(TEST_FILE_ONE
);
130 IF IS_OPEN
(TEST_FILE_ONE
) /= FALSE THEN
131 FAILED
("IS_OPEN GIVES TRUE ON UNSUCCESSFUL " &
137 VAL
:= IS_OPEN
(TEST_FILE_ONE
);
139 FAILED
("IS_OPEN RETURNS TRUE AFTER DELETE");