From 5561ee7ee385336ec694ddd02e9fc0cff6fdf665 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 5 Oct 2011 14:03:14 +0000 Subject: [PATCH] made valgrind a little happier --- t/29_cppcomments.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/29_cppcomments.t b/t/29_cppcomments.t index e4b88db..040c083 100644 --- a/t/29_cppcomments.t +++ b/t/29_cppcomments.t @@ -8,7 +8,6 @@ BEGIN { use Test::More; use t::lib::Test; -use Fatal qw(open); my @c_files = (<*.c>, <*.h>, <*.xs>); plan tests => scalar(@c_files); @@ -20,7 +19,7 @@ foreach my $file (@c_files) { next; } - open my $fh, '<', $file; + open my $fh, '<', $file or die "$file: $!"; my $line = 0; while (<$fh>) { $line++;