tests/valgrind.pm: fix warnings with no valgrind report to show
"readline() on closed filehandle $val at valgrind.pm line 45." Closes #14977
This commit is contained in:
parent
df5ad100f5
commit
fcbe930ef6
@ -41,7 +41,8 @@ use File::Basename;
|
||||
sub valgrindparse {
|
||||
my ($file) = @_;
|
||||
my @o;
|
||||
open(my $val, "<", "$file");
|
||||
open(my $val, "<", "$file") ||
|
||||
return;
|
||||
@o = <$val>;
|
||||
close($val);
|
||||
return @o;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user