summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-11-29 03:31:12 -0600
committerJesse Luehrs <doy@tozt.net>2011-11-29 03:31:12 -0600
commit96fcd34ebc0a0cd737ddea12e98d8996b0f39036 (patch)
tree4ae9a68063ad845cafce98fc5f922ea541a352fd
parent31cd651f065c3b740a7ec17df1d133729d474075 (diff)
downloadpackage-stash-96fcd34ebc0a0cd737ddea12e98d8996b0f39036.tar.gz
package-stash-96fcd34ebc0a0cd737ddea12e98d8996b0f39036.zip
test for ribasushi's @INC hook bug
-rw-r--r--t/inc-hook.t11
1 files changed, 11 insertions, 0 deletions
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;