Subject: | make test fails with sitecustomize.pl |
On Perl installations that use a sitecustomize.pl (e.g. CitrusPerl) the tests
will fail because the collected profiling data will not match the expected data.
About sitecustomize.pl:
http://www.nntp.perl.org/group/perl.perl5.porters/2007/10/msg129926.html
Problem seems to be that profile() in NYTProfTest.pm does NOT use
perl_command_words(skip_sitecustomize => 1) (as does run_perl_command()) but
just $perl. Changing line 382 as follows fixes that:
my @perl = perl_command_words(skip_sitecustomize => 1);
my $cmd = "@perl $opts{profperlopts} $test";
instead of
my $cmd = "$perl $opts{profperlopts} $test";