summaryrefslogtreecommitdiff
path: root/t/io/shm.t
diff options
context:
space:
mode:
Diffstat (limited to 't/io/shm.t')
-rw-r--r--t/io/shm.t8
1 files changed, 3 insertions, 5 deletions
diff --git a/t/io/shm.t b/t/io/shm.t
index 01e2172570..3feb3032d9 100644
--- a/t/io/shm.t
+++ b/t/io/shm.t
@@ -15,12 +15,10 @@
################################################################################
BEGIN {
- if ($ENV{'PERL_CORE'}) {
- chdir 't' if -d 't';
- @INC = '../lib' if -d '../lib' && -d '../ext';
- }
-
+ chdir 't' if -d 't' && $ENV{'PERL_CORE'};
require "./test.pl";
+ set_up_inc('../lib') if $ENV{'PERL_CORE'} && -d '../lib' && -d '../ext';
+
require Config; import Config;
if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {