This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
io/shm.t: make runnable as ./perl io/shm.t
authorTony Cook <tony@develop-help.com>
Wed, 18 Nov 2020 04:02:05 +0000 (15:02 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 24 Nov 2020 02:35:21 +0000 (13:35 +1100)
and give editors a hint

t/io/shm.t

index ced92a6..8ff1b33 100644 (file)
@@ -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;