Skip Menu |

This queue is for tickets about the timer-runtime CPAN distribution.

Report information
The Basics
Id: 105905
Status: open
Priority: 0/
Queue: timer-runtime

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: t/00-load.t should use $^X
The line my $output = `perl t/timer-runtime-test.pl`; should be written my $output = `$^X t/timer-runtime-test.pl`; to make sure that the currently used perl is also used for this test script. Otherwise the test suite may fail in strange ways: ... PERL_DL_NONLAZY=1 "/usr/perl5.22.0p/bin/perl5.22.0" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Testing Timer::Runtime 0.04, Perl 5.022000, /usr/perl5.22.0p/bin/perl5.22.0 t/timer-runtime-test.pl: Perl lib version (5.22.0) doesn't match executable '/usr/local/bin/perl5' version (5.20.2) at /usr/perl5.22.0p/lib/5.22.0/amd64-freebsd/Config.pm line 62. Compilation failed in require at /usr/perl5.22.0p/lib/5.22.0/amd64-freebsd/lib.pm line 6. BEGIN failed--compilation aborted at /usr/perl5.22.0p/lib/5.22.0/amd64-freebsd/lib.pm line 6. Compilation failed in require at /usr/perl5.22.0p/lib/site_perl/5.22.0/Devel/Hide.pm line 165. BEGIN failed--compilation aborted at /usr/perl5.22.0p/lib/site_perl/5.22.0/Devel/Hide.pm line 165. Compilation failed in require. BEGIN failed--compilation aborted. # Failed test 'got start time okay: ' # at t/00-load.t line 28. # undef # doesn't match '(?^:timer-runtime-test.pl Started:)' # Failed test 'got end time okay: ' # at t/00-load.t line 29. # undef # doesn't match '(?^:timer-runtime-test.pl Finished:)' # Failed test 'got elapsed time: ' # at t/00-load.t line 63. # undef # doesn't match '(?^:\d\d:\d\d:\d\d.\d\d\d\d\d\d)' # Looks like you failed 3 tests of 18. t/00-load.t ....... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/18 subtests ...
On 2015-07-16 10:05:48, SREZIC wrote: Show quoted text
> The line > > my $output = `perl t/timer-runtime-test.pl`; > > should be written > > my $output = `$^X t/timer-runtime-test.pl`;
It should actually be `"$^X" ...` because the path to the perl executable could have spaces in it :)