summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;