Fixed an error checking file types in the test suite helper.

This commit is contained in:
依瑪貓 2022-03-19 08:39:49 +08:00
parent 5b8d678b6b
commit 9669ce4fdd

View File

@ -288,7 +288,7 @@ sub read_file($) {
} }
# an xz compressed file # an xz compressed file
} elsif ($file =~ /\.xz/) { } elsif ($file =~ /\.xz$/) {
# IO::Uncompress::UnXz # IO::Uncompress::UnXz
if (eval { require IO::Uncompress::UnXz; 1; }) { if (eval { require IO::Uncompress::UnXz; 1; }) {
my ($FH, $xz); my ($FH, $xz);