+ # Sanity checks: none of the following should ever happen
+ foreach my $conn (@{ $this->{connections} }) {
+ my $test = $conn->option("current_test_address");
+ my $next = $this->_next_test($test);
+ if (defined $next) {
+ warn "$conn (in test '$test') has queued test '$next'";
+ }
+ if (my $task = $conn->current_task()) {
+ warn "$conn still has an active task $task";
+ }
+ if (my $task = $conn->next_task()) {
+ warn "$conn still has a queued task $task";
+ }
+ if (!$conn->is_idle()) {
+ warn "$conn still has ZOOM-C level tasks queued: see below";
+ }
+ if (!$conn->option("rewrote_record")) {
+ warn "$conn did not rewrite its ZeeRex record";
+ }
+ }
+
+ # This shouldn't happen emit anything either:
+ @conn = @{ $this->{connections} };
+ while (my $i1 = ZOOM::event(\@conn)) {
+ my $conn = $conn[$i1-1];
+ my $ev = $conn->last_event();
+ my $evstr = ZOOM::event_str($ev);
+ warn "$conn still has ZOOM-C level task queued: $ev ($evstr)"
+ if $ev != ZOOM::Event::ZEND;
+ }
+