Skip Menu |

This queue is for tickets about the scriptdist CPAN distribution.

Report information
The Basics
Id: 36207
Status: resolved
Priority: 0/
Queue: scriptdist

People
Owner: Nobody in particular
Requestors: jj [...] jonallen.info
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.15
Fixed in: (no value)



Subject: Generated 'compile.t' test fails on systems with multiple Perls
The 't/compile.t' test generated by scriptdist hard-codes the name of the Perl interpreter to 'perl'. This means that the test will always try to use the first 'perl' in the user's path, which may not be the Perl that the user is trying to install against. Instead, the test should be written to use $^X instead, i.e: $Content{"t/compile.t"} = <<"COMPILE_T"; # \$Id\$ use Test::More tests => 1; my \$file = "blib/script/$$hash{script}"; print "bail out! Script file is missing!" unless -e \$file; my \$output = `\$^X -c \$file 2>&1`; print "bail out! Script file is missing!" unless like( \$output, qr/syntax OK\$/, 'script compiles' ); COMPILE_T
Fixed in 0.16, just uploaded to PAUSE. Thanks, :)
Fixed in 0.16, just uploaded to PAUSE. Thanks, :)