summaryrefslogtreecommitdiffstats
path: root/t/inc-hook.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-11-29 14:51:39 -0600
committerJesse Luehrs <doy@tozt.net>2011-11-29 18:10:22 -0600
commitc803b9210927bdf4a385070d386904a28e5f8540 (patch)
tree519a32d3315c207e5283940492d9c3c86d158304 /t/inc-hook.t
parent3bc2194c3cd03e95aabe5b57001ae5e6e6c85393 (diff)
downloadpackage-stash-xs-c803b9210927bdf4a385070d386904a28e5f8540.tar.gz
package-stash-xs-c803b9210927bdf4a385070d386904a28e5f8540.zip
sync test suite
Diffstat (limited to 't/inc-hook.t')
-rw-r--r--t/inc-hook.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/inc-hook.t b/t/inc-hook.t
new file mode 100644
index 0000000..a8deabb
--- /dev/null
+++ b/t/inc-hook.t
@@ -0,0 +1,12 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+use Test::Fatal;
+use lib 't/lib';
+
+unshift @INC, sub { "some regex" =~ /match/; undef };
+
+is(exception { require Package::Stash }, undef, "works with an \@INC hook");
+
+done_testing;