summaryrefslogtreecommitdiff
path: root/lib/Text/Balanced/t/extcbk.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Text/Balanced/t/extcbk.t')
-rw-r--r--lib/Text/Balanced/t/extcbk.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Text/Balanced/t/extcbk.t b/lib/Text/Balanced/t/extcbk.t
index 10f974187b..69957ed758 100644
--- a/lib/Text/Balanced/t/extcbk.t
+++ b/lib/Text/Balanced/t/extcbk.t
@@ -1,3 +1,10 @@
+BEGIN {
+ if ($ENV{PERL_CORE}) {
+ chdir('t') if -d 't';
+ @INC = qw(../lib);
+ }
+}
+
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl test.pl'