summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2020-11-18 15:02:05 +1100
committerTony Cook <tony@develop-help.com>2020-11-24 13:35:21 +1100
commitd778a442f27e96241c6f7cfbf890bdf28b31b1a2 (patch)
treee2ad1cad000ca5cec648c506ed552ae150e17ed9
parent0bcc92493f9da3a04237ac3c3281e41581b65192 (diff)
downloadperl-d778a442f27e96241c6f7cfbf890bdf28b31b1a2.tar.gz
io/shm.t: make runnable as ./perl io/shm.t
and give editors a hint
-rw-r--r--t/io/shm.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/io/shm.t b/t/io/shm.t
index ced92a6186..8ff1b33c4a 100644
--- a/t/io/shm.t
+++ b/t/io/shm.t
@@ -1,3 +1,4 @@
+#!perl
################################################################################
#
# $Revision: 6 $
@@ -15,9 +16,9 @@
################################################################################
BEGIN {
- chdir 't' if -d 't' && $ENV{'PERL_CORE'};
+ chdir 't' if -d 't';
require "./test.pl";
- set_up_inc('../lib') if $ENV{'PERL_CORE'} && -d '../lib' && -d '../ext';
+ set_up_inc('../lib') if -d '../lib' && -d '../ext';
require Config; import Config;