Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/App/Yath/Command/runner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ sub update_io {
my $msg = "$_[0] at $caller[1] line $caller[2] ($caller2[1] line $caller2[2]).\n";
print $stderr $msg;
print STDERR $msg;
close($out_fh);
close($err_fh);
close($in_fh) if $in_fh;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless

POSIX::_exit(127);
};

Expand Down
2 changes: 2 additions & 0 deletions lib/App/Yath/Command/spawn.pm
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@ sub run {
sleep 0.2;
}
}
close($wfh);

$self->clear_sig_handlers();

my $exit = read_line($fh) // die "Could not get exit code";
close($fh);
$exit = parse_exit($exit);
if ($exit->{sig}) {
print STDERR "Terminated with signal: $exit->{sig}.\n";
Expand Down
1 change: 1 addition & 0 deletions lib/App/Yath/Tester.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ sub yath {
push @lines => @new;
print map { chomp($_); "DEBUG: > $_\n" } @new if $debug > 1;
}
close($rh);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless

}
else {
print "DEBUG: Waiting for $pid\n" if $debug;
Expand Down
1 change: 1 addition & 0 deletions lib/Test2/Harness/Collector.pm
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ sub process_runner_output {
stream => Test2::Harness::Util::File::Stream->new(name => File::Spec->catfile($auxdir, $path)),
};
}
closedir($dh);

for my $file (sort keys %{$self->{+RUNNER_AUX_HANDLES}}) {
my $data = $self->{+RUNNER_AUX_HANDLES}->{$file};
Expand Down
1 change: 1 addition & 0 deletions lib/Test2/Harness/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ sub find_libraries {
next unless -f $path && $path =~ m/\.pm$/;
push @found => [$path, $prefix];
}
closedir($dh);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless

}

push @bases => $new_base if @$new_base;
Expand Down
1 change: 1 addition & 0 deletions scripts/yath
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ BEGIN {
if ($no_stat{lc($^O)}) {
opendir(my $dh, $dir) or die "$!";
my $key = join ':' => sort readdir($dh);
closedir($dh);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless

last if $seen{$key}++;
}
else {
Expand Down