From: Jesse Luehrs Date: Tue, 29 Nov 2011 09:31:12 +0000 (-0600) Subject: test for ribasushi's @INC hook bug X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=96fcd34ebc0a0cd737ddea12e98d8996b0f39036;p=gitmo%2FPackage-Stash.git test for ribasushi's @INC hook bug --- diff --git a/t/inc-hook.t b/t/inc-hook.t new file mode 100644 index 0000000..9dd0742 --- /dev/null +++ b/t/inc-hook.t @@ -0,0 +1,11 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; +use Test::Fatal; + +unshift @INC, sub { "some regex" =~ /match/; undef }; + +is(exception { require Package::Stash }, undef, "works with an \@INC hook"); + +done_testing;