diff --git a/t/utime.t b/t/utime.t index 7183fcf..23df923 100644 --- a/t/utime.t +++ b/t/utime.t @@ -8,6 +8,7 @@ use autodie; use File::Temp qw(tempfile); my ($fh, $filename) = tempfile; +close $fh; # may not be able to utime an open file eval { utime(undef, undef, NO_SUCH_FILE); }; isa_ok($@, 'autodie::exception', 'exception thrown for utime');