We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae8f333 commit 29ba6e0Copy full SHA for 29ba6e0
t/fixin.t
@@ -12,7 +12,7 @@ BEGIN {
12
13
use File::Spec;
14
15
-use Test::More tests => 25;
+use Test::More tests => 28;
16
17
use Config;
18
use TieOut;
@@ -125,6 +125,21 @@ END
125
);
126
}
127
128
+SKIP: {
129
+ skip "Not relevant on VMS or MSWin32", 6 if $^O eq 'VMS' || $^O eq 'MSWin32' || $^O eq 'cygwin';
130
+ local $ENV{PERL_MM_SHEBANG}='relocatable';
131
+ test_fixin(<<END,
132
+#!/usr/bin/env perl
133
+
134
+foo doo who doo
135
+END
136
+ sub {
137
+ my @lines = @_;
138
+ like $lines[0], qr[^#!/usr/bin/env perl\s$], "Relocatable perl";
139
+ }
140
+ );
141
+}
142
143
SKIP: {
144
eval { chmod(0755, "usrbin/interp") }
145
or skip "no chmod", 6;
0 commit comments