Skip to content

Commit

Permalink
Fixes in test suite. Thanks to ppisar for GH#17
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed Jan 22, 2025
1 parent ac4dd27 commit b3afa6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/getrandom.t
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _OUT_
my $handle = FileHandle->new();

if (my $pid = $handle->open(q[-|])) {
my $line = <$handle>;
my $result = $handle->read(my $line, $correct_length + 5);
chomp $line;
my $actual_length = length $line;
ok($actual_length == $correct_length, "getrandom hit with INT signal after $failed_number_of_bytes bytes recovers to produce correct length of $correct_length bytes:$actual_length");
Expand Down Expand Up @@ -87,7 +87,7 @@ _OUT_
$handle = FileHandle->new();

if (my $pid = $handle->open(q[-|])) {
my $line = <$handle>;
my $result = $handle->read(my $line, 4000);
chomp $line;
my ($actual_error, $entire_message) = split /\t/smx, $line;
$! = POSIX::EAGAIN();
Expand Down

0 comments on commit b3afa6c

Please sign in to comment.