Natools

Check-in [5b22a3626b]
Login
Overview
Comment:cron-tests: re-tune to achieve full coverage
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5b22a3626bcc1bf7113a936a77c063ef0b40a436
User & Date: nat on 2017-07-09 21:04:16
Other Links: manifest | tags
Context
2017-07-10
20:33
s_expressions-file_rw_tests: update to test Open_Or_Create primitives check-in: f3f5729400 user: nat tags: trunk
2017-07-09
21:04
cron-tests: re-tune to achieve full coverage check-in: 5b22a3626b user: nat tags: trunk
2017-07-08
21:30
cron: fix event order when extending an event list check-in: 7064962d3b user: nat tags: trunk
Changes

Modified tests/natools-cron-tests.adb from [4950100b99] to [a290944379].

167
168
169
170
171
172
173

174
175
176
177
178
179




180
181
182
183


184
185

186
187
188
189
190
191
192
   procedure Delete_While_Busy (Report : in out NT.Reporter'Class) is
      Test : NT.Test := Report.Item ("Delete entry while callback is running");
      Total : constant Duration := 0.01;
      Log : aliased Bounded_String (256);
   begin
      declare
         Test_Entry : Cron_Entry;

      begin
         Test_Entry.Set (Total / 8, Long_Callback'
           (Backend => Log'Access,
            Open => '(',
            Close => ')',
            Wait => Total / 4));




         delay Total / 4;
      end;

      Check (Test, "(", Get (Log), "Before wait");


      delay Total / 2;
      Check (Test, "()", Get (Log), "After wait");

   exception
      when Error : others => Test.Report_Exception (Error);
   end Delete_While_Busy;


   procedure Delete_While_Collision (Report : in out NT.Reporter'Class) is
      Test : NT.Test







>






>
>
>
>

<

|
>
>
|
|
>







167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185

186
187
188
189
190
191
192
193
194
195
196
197
198
199
   procedure Delete_While_Busy (Report : in out NT.Reporter'Class) is
      Test : NT.Test := Report.Item ("Delete entry while callback is running");
      Total : constant Duration := 0.01;
      Log : aliased Bounded_String (256);
   begin
      declare
         Test_Entry : Cron_Entry;
         Guard_Entry : Cron_Entry;
      begin
         Test_Entry.Set (Total / 8, Long_Callback'
           (Backend => Log'Access,
            Open => '(',
            Close => ')',
            Wait => Total / 4));
         Guard_Entry.Set (Total / 2, Test_Callback'
           (Backend => Log'Access,
            Symbol => '.'));

         delay Total / 4;


         Check (Test, "(", Get (Log), "Before wait");
         Test_Entry.Reset;

         delay Total / 2;
         Check (Test, "().", Get (Log), "After wait");
      end;
   exception
      when Error : others => Test.Report_Exception (Error);
   end Delete_While_Busy;


   procedure Delete_While_Collision (Report : in out NT.Reporter'Class) is
      Test : NT.Test