summaryrefslogtreecommitdiff
path: root/scripts/t/Dpkg_Changelog.t
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/t/Dpkg_Changelog.t')
-rw-r--r--scripts/t/Dpkg_Changelog.t4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/t/Dpkg_Changelog.t b/scripts/t/Dpkg_Changelog.t
index f487ff560..4d046fec1 100644
--- a/scripts/t/Dpkg_Changelog.t
+++ b/scripts/t/Dpkg_Changelog.t
@@ -41,9 +41,7 @@ foreach my $file ("$datadir/countme", "$datadir/shadow", "$datadir/fields",
my $changes = Dpkg::Changelog::Debian->new(verbose => 0);
$changes->load($file);
- open(my $clog_fh, '<', "$file") or die "can't open $file\n";
- my $content = file_slurp($clog_fh);
- close($clog_fh);
+ my $content = file_slurp($file);
cmp_ok($content, 'eq', "$changes", "string output of Dpkg::Changelog on $file");
my $errors = $changes->get_parse_errors();