summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Fenwick <pjf@perltraining.com.au>2009-07-13 11:30:28 +1000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2009-07-13 08:11:20 +0200
commit5472f9ed718663ee4484a52b9bdc63b8f228bccd (patch)
tree8d2607c1132613c97484e459a77704a4305eee23 /lib
parent3983eafb40341b21a64d20c0c4e7e618101ee6ce (diff)
downloadperl-5472f9ed718663ee4484a52b9bdc63b8f228bccd.tar.gz
Better flock detection for autodie tests
G'day p5p, Craig A. Berry discovered that autodie's tests which attempt to detect flock() support can cause bogus test failures on older VMS systems: https://rt.cpan.org/Ticket/Display.html?id=47812 Attached is a trivial patch from Craig that fixes this issue. It's already been applied to my upstream repository. Dave - I have no idea if this would be an issue for people building Perl 5.10.1 on old VMS systems. You may wish to consider it for inclusion into maint-5.10 just in case. All the very best, Paul -- Paul Fenwick <pjf@perltraining.com.au> | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia | Fax: +61 3 9354 2681 Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/autodie/t/flock.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/autodie/t/flock.t b/lib/autodie/t/flock.t
index 8b2a168398..a7550bad6a 100755
--- a/lib/autodie/t/flock.t
+++ b/lib/autodie/t/flock.t
@@ -23,7 +23,7 @@ if ($@) {
plan skip_all => "Cannot lock this test on this system.";
}
-my $flock_return = flock($self_fh, LOCK_EX | LOCK_NB);
+my $flock_return = eval { flock($self_fh, LOCK_EX | LOCK_NB); };
if (not $flock_return) {
plan skip_all => "flock on my own test not supported on this system.";