test can handle missing ref files

useful for new tests
This commit is contained in:
Dima Kogan 2021-02-08 23:03:55 -08:00
parent c9384f5f63
commit 2a91bd742e

View File

@ -322,7 +322,7 @@ sub readfile
{
my $path = $_[0];
open my $fd, '<', $path or die "Couldn't open '$path'";
open my $fd, '<', $path or return '';
local $/ = undef;
my $dat = <$fd>;
close $fd;