annotate gcc/testsuite/ada/acats/tests/c9/c940013.a @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 -- C940013.A
kono
parents:
diff changeset
2 --
kono
parents:
diff changeset
3 -- Grant of Unlimited Rights
kono
parents:
diff changeset
4 --
kono
parents:
diff changeset
5 -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
kono
parents:
diff changeset
6 -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
kono
parents:
diff changeset
7 -- unlimited rights in the software and documentation contained herein.
kono
parents:
diff changeset
8 -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
kono
parents:
diff changeset
9 -- this public release, the Government intends to confer upon all
kono
parents:
diff changeset
10 -- recipients unlimited rights equal to those held by the Government.
kono
parents:
diff changeset
11 -- These rights include rights to use, duplicate, release or disclose the
kono
parents:
diff changeset
12 -- released technical data and computer software in whole or in part, in
kono
parents:
diff changeset
13 -- any manner and for any purpose whatsoever, and to have or permit others
kono
parents:
diff changeset
14 -- to do so.
kono
parents:
diff changeset
15 --
kono
parents:
diff changeset
16 -- DISCLAIMER
kono
parents:
diff changeset
17 --
kono
parents:
diff changeset
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
kono
parents:
diff changeset
19 -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
kono
parents:
diff changeset
20 -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
kono
parents:
diff changeset
21 -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
kono
parents:
diff changeset
22 -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
kono
parents:
diff changeset
23 -- PARTICULAR PURPOSE OF SAID MATERIAL.
kono
parents:
diff changeset
24 --*
kono
parents:
diff changeset
25 --
kono
parents:
diff changeset
26 -- OBJECTIVE:
kono
parents:
diff changeset
27 -- Check that items queued on a protected entry are handled FIFO and that
kono
parents:
diff changeset
28 -- the 'count attribute of that entry reflects the length of the queue.
kono
parents:
diff changeset
29 --
kono
parents:
diff changeset
30 -- TEST DESCRIPTION:
kono
parents:
diff changeset
31 -- Use a small subset of the freeway ramp simulation shown in other
kono
parents:
diff changeset
32 -- tests. With the timing pulse off (which prevents items from being
kono
parents:
diff changeset
33 -- removed from the queue) queue up a small number of calls. Start the
kono
parents:
diff changeset
34 -- timing pulse and, at the first execution of the entry code, check the
kono
parents:
diff changeset
35 -- 'count attribute. Empty the queue. Pass the items being removed from
kono
parents:
diff changeset
36 -- the queue to the Ramp_Sensor_01 task; there check that the items are
kono
parents:
diff changeset
37 -- arriving in FIFO order. Check the final 'count value
kono
parents:
diff changeset
38 --
kono
parents:
diff changeset
39 -- Send another batch of items at a rate which will, if the delay timing
kono
parents:
diff changeset
40 -- of the implementation is reasonable, cause the queue length to
kono
parents:
diff changeset
41 -- fluctuate in both directions. Again check that all items arrive
kono
parents:
diff changeset
42 -- FIFO. At the end check that the 'count returned to zero reflecting
kono
parents:
diff changeset
43 -- the empty queue.
kono
parents:
diff changeset
44 --
kono
parents:
diff changeset
45 --
kono
parents:
diff changeset
46 -- CHANGE HISTORY:
kono
parents:
diff changeset
47 -- 06 Dec 94 SAIC ACVC 2.0
kono
parents:
diff changeset
48 --
kono
parents:
diff changeset
49 --!
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 with Report;
kono
parents:
diff changeset
52 with ImpDef;
kono
parents:
diff changeset
53 with Ada.Calendar;
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 procedure C940013 is
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 TC_Failed_1 : Boolean := false;
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 begin
kono
parents:
diff changeset
60
kono
parents:
diff changeset
61 Report.Test ("C940013", "Check that queues on protected entries are " &
kono
parents:
diff changeset
62 "handled FIFO and that 'count is correct");
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 declare -- encapsulate the test
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 function "+" (Left : Ada.Calendar.Time; Right: Duration)
kono
parents:
diff changeset
67 return Ada.Calendar.Time renames Ada.Calendar."+";
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 -- Weighted load given to each potential problem area and accumulated
kono
parents:
diff changeset
70 type Load_Factor is range 0..8;
kono
parents:
diff changeset
71 Clear_Level : constant Load_Factor := 0;
kono
parents:
diff changeset
72 Minimum_Level : constant Load_Factor := 1;
kono
parents:
diff changeset
73 Moderate_Level : constant Load_Factor := 2;
kono
parents:
diff changeset
74 Serious_Level : constant Load_Factor := 4;
kono
parents:
diff changeset
75 Critical_Level : constant Load_Factor := 6;
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 TC_Expected_Passage_Total : constant integer := 624;
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 -- For this test give each vehicle an integer ID incremented
kono
parents:
diff changeset
80 -- by one for each successive vehicle. In reality this would be
kono
parents:
diff changeset
81 -- a more complex alpha-numeric ID assigned at pickup time.
kono
parents:
diff changeset
82 type Vehicle_ID is range 1..5000;
kono
parents:
diff changeset
83 Next_ID : Vehicle_ID := Vehicle_ID'first;
kono
parents:
diff changeset
84
kono
parents:
diff changeset
85 -- In reality this would be about 5 seconds. The default value of
kono
parents:
diff changeset
86 -- this constant in the implementation defined package is similar
kono
parents:
diff changeset
87 -- but could, of course be considerably different - it would not
kono
parents:
diff changeset
88 -- affect the test
kono
parents:
diff changeset
89 --
kono
parents:
diff changeset
90 Pulse_Time_Delta : duration := ImpDef.Clear_Ready_Queue;
kono
parents:
diff changeset
91
kono
parents:
diff changeset
92
kono
parents:
diff changeset
93 task Pulse_Task; -- task to generate a pulse for each ramp
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95 -- Carrier task. One is created for each vehicle arriving at the ramp
kono
parents:
diff changeset
96 task type Vehicle is
kono
parents:
diff changeset
97 entry Get_ID (Input_ID : in Vehicle_ID);
kono
parents:
diff changeset
98 end Vehicle;
kono
parents:
diff changeset
99 type acc_Vehicle is access Vehicle;
kono
parents:
diff changeset
100
kono
parents:
diff changeset
101 task Ramp_Sensor_01 is
kono
parents:
diff changeset
102 entry Accept_Vehicle (Input_ID : in Vehicle_ID);
kono
parents:
diff changeset
103 entry TC_First_Three_Handled;
kono
parents:
diff changeset
104 entry TC_All_Done;
kono
parents:
diff changeset
105 end Ramp_Sensor_01;
kono
parents:
diff changeset
106
kono
parents:
diff changeset
107 protected Pulse_State is
kono
parents:
diff changeset
108 procedure Start_Pulse;
kono
parents:
diff changeset
109 procedure Stop_Pulse;
kono
parents:
diff changeset
110 function Pulsing return Boolean;
kono
parents:
diff changeset
111 private
kono
parents:
diff changeset
112 State : Boolean := false; -- start test will pulse off
kono
parents:
diff changeset
113 end Pulse_State;
kono
parents:
diff changeset
114
kono
parents:
diff changeset
115 protected body Pulse_State is
kono
parents:
diff changeset
116
kono
parents:
diff changeset
117 procedure Start_Pulse is
kono
parents:
diff changeset
118 begin
kono
parents:
diff changeset
119 State := true;
kono
parents:
diff changeset
120 end Start_Pulse;
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 procedure Stop_Pulse is
kono
parents:
diff changeset
123 begin
kono
parents:
diff changeset
124 State := false;
kono
parents:
diff changeset
125 end Stop_Pulse;
kono
parents:
diff changeset
126
kono
parents:
diff changeset
127 function Pulsing return Boolean is
kono
parents:
diff changeset
128 begin
kono
parents:
diff changeset
129 return State;
kono
parents:
diff changeset
130 end Pulsing;
kono
parents:
diff changeset
131
kono
parents:
diff changeset
132 end Pulse_State;
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 --================================================================
kono
parents:
diff changeset
135 protected Test_Ramp is
kono
parents:
diff changeset
136
kono
parents:
diff changeset
137 function Meter_in_use_State return Boolean;
kono
parents:
diff changeset
138 procedure Time_Pulse_Received;
kono
parents:
diff changeset
139 entry Wait_at_Meter;
kono
parents:
diff changeset
140 procedure TC_Passage (Pass_Point : Integer);
kono
parents:
diff changeset
141 function TC_Get_Passage_Total return integer;
kono
parents:
diff changeset
142 function TC_Get_Count return integer;
kono
parents:
diff changeset
143
kono
parents:
diff changeset
144 private
kono
parents:
diff changeset
145
kono
parents:
diff changeset
146 Release_One_Vehicle : Boolean := false;
kono
parents:
diff changeset
147 -- For this test have Meter_in_Use already set
kono
parents:
diff changeset
148 Meter_in_Use : Boolean := true;
kono
parents:
diff changeset
149
kono
parents:
diff changeset
150 TC_Wait_at_Meter_First : Boolean := true;
kono
parents:
diff changeset
151 TC_Entry_Queue_Count : integer := 0; -- 'count of Wait_at_Meter
kono
parents:
diff changeset
152 TC_Passage_Total : integer := 0;
kono
parents:
diff changeset
153 TC_Pass_Point_WAM : integer := 23;
kono
parents:
diff changeset
154
kono
parents:
diff changeset
155 end Test_Ramp;
kono
parents:
diff changeset
156 --================================================================
kono
parents:
diff changeset
157 protected body Test_Ramp is
kono
parents:
diff changeset
158
kono
parents:
diff changeset
159 -- External call for Meter_in_Use
kono
parents:
diff changeset
160 function Meter_in_Use_State return Boolean is
kono
parents:
diff changeset
161 begin
kono
parents:
diff changeset
162 return Meter_in_Use;
kono
parents:
diff changeset
163 end Meter_in_Use_State;
kono
parents:
diff changeset
164
kono
parents:
diff changeset
165 -- Trace the paths through the various routines by totalling the
kono
parents:
diff changeset
166 -- weighted call parameters
kono
parents:
diff changeset
167 procedure TC_Passage (Pass_Point : Integer) is
kono
parents:
diff changeset
168 begin
kono
parents:
diff changeset
169 TC_Passage_Total := TC_Passage_Total + Pass_Point;
kono
parents:
diff changeset
170 end TC_Passage;
kono
parents:
diff changeset
171
kono
parents:
diff changeset
172 -- For the final check of the whole test
kono
parents:
diff changeset
173 function TC_Get_Passage_Total return integer is
kono
parents:
diff changeset
174 begin
kono
parents:
diff changeset
175 return TC_Passage_Total;
kono
parents:
diff changeset
176 end TC_Get_Passage_Total;
kono
parents:
diff changeset
177
kono
parents:
diff changeset
178 function TC_Get_Count return integer is
kono
parents:
diff changeset
179 begin
kono
parents:
diff changeset
180 return TC_Entry_Queue_Count;
kono
parents:
diff changeset
181 end TC_Get_Count;
kono
parents:
diff changeset
182
kono
parents:
diff changeset
183
kono
parents:
diff changeset
184 -- Here each Vehicle task queues itself awaiting release
kono
parents:
diff changeset
185 --
kono
parents:
diff changeset
186 entry Wait_at_Meter when Release_One_Vehicle is
kono
parents:
diff changeset
187 -- EXAMPLE OF ENTRY WITH BARRIERS AND PERSISTENT SIGNAL
kono
parents:
diff changeset
188 begin
kono
parents:
diff changeset
189 --
kono
parents:
diff changeset
190 TC_Passage ( TC_Pass_Point_WAM ); -- note passage
kono
parents:
diff changeset
191 -- For this test three vehicles are queued before the first
kono
parents:
diff changeset
192 -- is released. If the queueing mechanism is working correctly
kono
parents:
diff changeset
193 -- the first time we pass through here the entry'count should
kono
parents:
diff changeset
194 -- reflect this
kono
parents:
diff changeset
195 if TC_Wait_at_Meter_First then
kono
parents:
diff changeset
196 if Wait_at_Meter'count /= 2 then
kono
parents:
diff changeset
197 TC_Failed_1 := true;
kono
parents:
diff changeset
198 end if;
kono
parents:
diff changeset
199 TC_Wait_at_Meter_First := false;
kono
parents:
diff changeset
200 end if;
kono
parents:
diff changeset
201 TC_Entry_Queue_Count := Wait_at_Meter'count; -- note for later
kono
parents:
diff changeset
202
kono
parents:
diff changeset
203 Release_One_Vehicle := false; -- Consume the signal
kono
parents:
diff changeset
204 null; -- stub ::: Decrement count of number of vehicles on ramp
kono
parents:
diff changeset
205 end Wait_at_Meter;
kono
parents:
diff changeset
206
kono
parents:
diff changeset
207
kono
parents:
diff changeset
208 procedure Time_Pulse_Received is
kono
parents:
diff changeset
209 Load : Load_factor := Minimum_Level; -- for this version of the
kono
parents:
diff changeset
210 Freeway_Breakdown : Boolean := false; -- test, freeway is Minimum
kono
parents:
diff changeset
211 begin
kono
parents:
diff changeset
212 -- if broken down, no vehicles are released
kono
parents:
diff changeset
213 if not Freeway_Breakdown then
kono
parents:
diff changeset
214 if Load < Moderate_Level then
kono
parents:
diff changeset
215 Release_One_Vehicle := true;
kono
parents:
diff changeset
216 end if;
kono
parents:
diff changeset
217 null; -- stub ::: If other levels, release every other
kono
parents:
diff changeset
218 -- pulse, every third pulse etc.
kono
parents:
diff changeset
219 end if;
kono
parents:
diff changeset
220 end Time_Pulse_Received;
kono
parents:
diff changeset
221
kono
parents:
diff changeset
222 end Test_Ramp;
kono
parents:
diff changeset
223 --================================================================
kono
parents:
diff changeset
224
kono
parents:
diff changeset
225 -- Simulate the arrival of a vehicle at the Ramp_Receiver and the
kono
parents:
diff changeset
226 -- generation of an accompanying carrier task
kono
parents:
diff changeset
227 procedure New_Arrival is
kono
parents:
diff changeset
228 Next_Vehicle_Task: acc_Vehicle := new Vehicle;
kono
parents:
diff changeset
229 TC_Pass_Point : constant integer := 3;
kono
parents:
diff changeset
230 begin
kono
parents:
diff changeset
231 Next_ID := Next_ID + 1;
kono
parents:
diff changeset
232 Next_Vehicle_Task.Get_ID(Next_ID);
kono
parents:
diff changeset
233 Test_Ramp.TC_Passage ( TC_Pass_Point ); -- Note passage through here
kono
parents:
diff changeset
234 null;
kono
parents:
diff changeset
235 end New_arrival;
kono
parents:
diff changeset
236
kono
parents:
diff changeset
237
kono
parents:
diff changeset
238 -- Carrier task. One is created for each vehicle arriving at the ramp
kono
parents:
diff changeset
239 task body Vehicle is
kono
parents:
diff changeset
240 This_ID : Vehicle_ID;
kono
parents:
diff changeset
241 TC_Pass_Point_2 : constant integer := 21;
kono
parents:
diff changeset
242 begin
kono
parents:
diff changeset
243 accept Get_ID (Input_ID : in Vehicle_ID) do
kono
parents:
diff changeset
244 This_ID := Input_ID;
kono
parents:
diff changeset
245 end Get_ID;
kono
parents:
diff changeset
246
kono
parents:
diff changeset
247 if Test_Ramp.Meter_in_Use_State then
kono
parents:
diff changeset
248 Test_Ramp.TC_Passage ( TC_Pass_Point_2 ); -- note passage
kono
parents:
diff changeset
249 null; -- stub::: Increment count of number of vehicles on ramp
kono
parents:
diff changeset
250 Test_Ramp.Wait_at_Meter; -- Queue on the meter entry
kono
parents:
diff changeset
251 end if;
kono
parents:
diff changeset
252
kono
parents:
diff changeset
253 -- Call to the first in the series of the Ramp_Sensors
kono
parents:
diff changeset
254 -- this "passes" the vehicle from one sensor to the next
kono
parents:
diff changeset
255 -- Each sensor will requeue the call to the next thus this
kono
parents:
diff changeset
256 -- rendezvous will only be completed as the vehicle is released
kono
parents:
diff changeset
257 -- by the last sensor on the ramp.
kono
parents:
diff changeset
258 Ramp_Sensor_01.Accept_Vehicle (This_ID);
kono
parents:
diff changeset
259 exception
kono
parents:
diff changeset
260 when others =>
kono
parents:
diff changeset
261 Report.Failed ("Unexpected exception in Vehicle Task");
kono
parents:
diff changeset
262 end Vehicle;
kono
parents:
diff changeset
263
kono
parents:
diff changeset
264 task body Ramp_Sensor_01 is
kono
parents:
diff changeset
265 TC_Pass_Point : constant integer := 31;
kono
parents:
diff changeset
266 This_ID : Vehicle_ID;
kono
parents:
diff changeset
267 TC_Last_ID : Vehicle_ID := Vehicle_ID'first;
kono
parents:
diff changeset
268 begin
kono
parents:
diff changeset
269 loop
kono
parents:
diff changeset
270 select
kono
parents:
diff changeset
271 accept Accept_Vehicle (Input_ID : in Vehicle_ID) do
kono
parents:
diff changeset
272 null; -- stub:::: match up with next Real-Time notification
kono
parents:
diff changeset
273 -- from the sensor. Requeue to next ramp sensor
kono
parents:
diff changeset
274 This_ID := Input_ID;
kono
parents:
diff changeset
275
kono
parents:
diff changeset
276 -- The following is all Test_Control code
kono
parents:
diff changeset
277 Test_Ramp.TC_Passage ( TC_Pass_Point ); -- note passage
kono
parents:
diff changeset
278 -- The items arrive in the order they are taken from
kono
parents:
diff changeset
279 -- the Wait_at_Meter entry queue
kono
parents:
diff changeset
280 if ( This_ID - TC_Last_ID ) /= 1 then
kono
parents:
diff changeset
281 -- The tasks are being queued (or unqueued) in the
kono
parents:
diff changeset
282 -- wrong order
kono
parents:
diff changeset
283 Report.Failed
kono
parents:
diff changeset
284 ("Queueing on the Wait_at_Meter queue failed");
kono
parents:
diff changeset
285 end if;
kono
parents:
diff changeset
286 TC_Last_ID := This_ID; -- for the next check
kono
parents:
diff changeset
287 if TC_Last_ID = 4 then
kono
parents:
diff changeset
288 -- rendezvous with the test driver
kono
parents:
diff changeset
289 accept TC_First_Three_Handled;
kono
parents:
diff changeset
290 elsif TC_Last_ID = 9 then
kono
parents:
diff changeset
291 -- rendezvous with the test driver
kono
parents:
diff changeset
292 accept TC_All_Done;
kono
parents:
diff changeset
293 end if;
kono
parents:
diff changeset
294 end Accept_Vehicle;
kono
parents:
diff changeset
295 or
kono
parents:
diff changeset
296 terminate;
kono
parents:
diff changeset
297 end select;
kono
parents:
diff changeset
298 end loop;
kono
parents:
diff changeset
299 exception
kono
parents:
diff changeset
300 when others =>
kono
parents:
diff changeset
301 Report.Failed ("Unexpected exception in Ramp_Sensor_01");
kono
parents:
diff changeset
302 end Ramp_Sensor_01;
kono
parents:
diff changeset
303
kono
parents:
diff changeset
304
kono
parents:
diff changeset
305 -- Task transmits a synchronizing "pulse" to all ramps
kono
parents:
diff changeset
306 --
kono
parents:
diff changeset
307 task body Pulse_Task is
kono
parents:
diff changeset
308 Pulse_Time : Ada.Calendar.Time;
kono
parents:
diff changeset
309 begin
kono
parents:
diff changeset
310 While not Pulse_State.Pulsing loop
kono
parents:
diff changeset
311 -- Starts up in the quiescent state
kono
parents:
diff changeset
312 delay ImpDef.Minimum_Task_Switch;
kono
parents:
diff changeset
313 end loop;
kono
parents:
diff changeset
314 Pulse_Time := Ada.Calendar.Clock;
kono
parents:
diff changeset
315 While Pulse_State.Pulsing loop
kono
parents:
diff changeset
316 delay until Pulse_Time;
kono
parents:
diff changeset
317 Test_Ramp. Time_Pulse_Received; -- Transmit pulse to test_ramp
kono
parents:
diff changeset
318 -- :::::::::: and to all the other ramps
kono
parents:
diff changeset
319 Pulse_Time := Pulse_Time + Pulse_Time_Delta; -- calculate next
kono
parents:
diff changeset
320 end loop;
kono
parents:
diff changeset
321 exception
kono
parents:
diff changeset
322 when others =>
kono
parents:
diff changeset
323 Report.Failed ("Unexpected exception in Pulse_Task");
kono
parents:
diff changeset
324 end Pulse_Task;
kono
parents:
diff changeset
325
kono
parents:
diff changeset
326
kono
parents:
diff changeset
327 begin -- declare
kono
parents:
diff changeset
328
kono
parents:
diff changeset
329 -- Test driver. This is ALL test control code
kono
parents:
diff changeset
330
kono
parents:
diff changeset
331 -- Arrange to queue three vehicles on the Wait_at_Meter queue. The
kono
parents:
diff changeset
332 -- timing pulse is quiescent so the queue will build
kono
parents:
diff changeset
333 for i in 1..3 loop
kono
parents:
diff changeset
334 New_Arrival;
kono
parents:
diff changeset
335 end loop;
kono
parents:
diff changeset
336
kono
parents:
diff changeset
337 delay Pulse_Time_Delta; -- ensure all is settled
kono
parents:
diff changeset
338
kono
parents:
diff changeset
339 Pulse_State.Start_Pulse; -- Start the timing pulse, the queue will
kono
parents:
diff changeset
340 -- be serviced
kono
parents:
diff changeset
341
kono
parents:
diff changeset
342 -- wait here until the first three are complete
kono
parents:
diff changeset
343 Ramp_Sensor_01.TC_First_Three_Handled;
kono
parents:
diff changeset
344
kono
parents:
diff changeset
345 if Test_Ramp.TC_Get_Count /= 0 then
kono
parents:
diff changeset
346 Report.Failed ("Intermediate Wait_at_Entry'count is incorrect");
kono
parents:
diff changeset
347 end if;
kono
parents:
diff changeset
348
kono
parents:
diff changeset
349 -- generate new arrivals at a rate that will make the queue increase
kono
parents:
diff changeset
350 -- and decrease "randomly"
kono
parents:
diff changeset
351 for i in 1..5 loop
kono
parents:
diff changeset
352 New_Arrival;
kono
parents:
diff changeset
353 delay Pulse_Time_Delta/2;
kono
parents:
diff changeset
354 end loop;
kono
parents:
diff changeset
355
kono
parents:
diff changeset
356 -- wait here till all have been handled
kono
parents:
diff changeset
357 Ramp_Sensor_01.TC_All_Done;
kono
parents:
diff changeset
358
kono
parents:
diff changeset
359 if Test_Ramp.TC_Get_Count /= 0 then
kono
parents:
diff changeset
360 Report.Failed ("Final Wait_at_Entry'count is incorrect");
kono
parents:
diff changeset
361 end if;
kono
parents:
diff changeset
362
kono
parents:
diff changeset
363 Pulse_State.Stop_Pulse; -- finish test
kono
parents:
diff changeset
364
kono
parents:
diff changeset
365
kono
parents:
diff changeset
366 if TC_Expected_Passage_Total /= Test_Ramp.TC_Get_Passage_Total then
kono
parents:
diff changeset
367 Report.Failed ("Unexpected paths taken");
kono
parents:
diff changeset
368 end if;
kono
parents:
diff changeset
369
kono
parents:
diff changeset
370
kono
parents:
diff changeset
371 end; -- declare
kono
parents:
diff changeset
372
kono
parents:
diff changeset
373 if TC_Failed_1 then
kono
parents:
diff changeset
374 Report.Failed ("Wait_at_Meter'count incorrect");
kono
parents:
diff changeset
375 end if;
kono
parents:
diff changeset
376
kono
parents:
diff changeset
377 Report.Result;
kono
parents:
diff changeset
378
kono
parents:
diff changeset
379 end C940013;