This ensures reused processes get a clean start and
avoids surprises as we develop more code around the
DS event loop.
ok($x[0]->[0]->IN_DELETE_SELF || $x[0]->[0]->IN_MOVE_SELF,
'IN_DELETE_SELF set on move');
-PublicInbox::DS->Reset;
done_testing;
diag explain(\@events);
ok($events[0]->IN_DELETE, 'IN_DELETE set on unlink');
-PublicInbox::DS->Reset;
-
done_testing;
use IO::Handle; # ->autoflush
use PublicInbox::TestCommon;
use PublicInbox::Spawn;
+use PublicInbox::DS; # already loaded by Spawn via ProcessIO
use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev);
use Errno qw(EINTR);
use Fcntl qw(:seek);
DIE "short read $r" if $r != UINT_SIZE;
my $t = unpack('I', $buf);
run_test($todo->[$t]);
+ PublicInbox::DS->Reset;
$tb->reset;
}
kill 'USR1', $producer if !$eof; # sets $eof in $producer