From 2a91bd742eab3cfee64281bd7fcd50da4e0a467d Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Mon, 8 Feb 2021 23:03:55 -0800 Subject: [PATCH] test can handle missing ref files useful for new tests --- t/plots.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/plots.t b/t/plots.t index 642d4d3..bd07d0e 100644 --- a/t/plots.t +++ b/t/plots.t @@ -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;