Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Resub CPAN distribution.

Report information
The Basics
Id: 34187
Status: resolved
Priority: 0/
Queue: Test-Resub

People
Owner: Nobody in particular
Requestors: mutant.nz [...] gmail.com
Cc:
AdminCc:

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



Subject: Problem installing
Having issues trying to install Test::Resub, am getting a syntax error (output attached) during 'make test'. Perl version: 5.8.0 OS: Solaris 5.8 I'm guessing this is some sort of version compatibility issue? Thanks.
Subject: test_resub_make.txt
$ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Test::Resub $ make cp lib/Test/Resub.pm blib/lib/Test/Resub.pm Manifying blib/man3/Test::Resub.3 $ make test PERL_DL_NONLAZY=1 /opt/customer/local/perl58/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.... # Failed test 'use Test::Resub;' # at t/00-load.t line 6. # Tried to use 'Test::Resub'. # Error: syntax error at /export/home/user/.cpan/build/Test-Resub-1.02/blib/lib/Test/Resub.pm line 86, near "($was_called ?" t/00-load....NOK 1# (Might be a runaway multi-line ?? string starting on line 70) # syntax error at /export/home/user/.cpan/build/Test-Resub-1.02/blib/lib/Test/Resub.pm line 86, near "'called' :" # BEGIN not safe after errors--compilation aborted at /export/home/user/.cpan/build/Test-Resub-1.02/blib/lib/Test/Resub.pm line 91. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. # Testing Test::Resub , Perl 5.008, /opt/customer/local/perl58/bin/perl # Looks like you failed 1 test of 1. t/00-load....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/01-main....syntax error at lib/Test/Resub.pm line 86, near "($was_called ?" (Might be a runaway multi-line ?? string starting on line 70) syntax error at lib/Test/Resub.pm line 86, near "'called' :" BEGIN not safe after errors--compilation aborted at lib/Test/Resub.pm line 91. Compilation failed in require at t/01-main.t line 13. BEGIN failed--compilation aborted at t/01-main.t line 13. # Looks like your test died before it could output anything. t/01-main....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-56 Failed 56/56 tests, 0.00% okay t/TODO.......ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/00-load.t 1 256 1 1 100.00% 1 t/01-main.t 255 65280 56 56 100.00% 1-56 Failed 2/3 test scripts, 33.33% okay. 57/58 subtests failed, 1.72% okay. make: *** [test_dynamic] Error 29
Subject: [rt.cpan.org #34187] Fixed
Date: Thu, 20 Mar 2008 10:22:44 +0000
To: bug-Test-Resub [...] rt.cpan.org
From: "Sam Crawley" <mutant.nz [...] gmail.com>
I managed to fix this by changing line 70 in Test/Resub.pm from a ternary operator to an if statement. I've no idea why it works though.
From: airwave [...] cpan.org
On Thu Mar 20 06:23:00 2008, Mutant wrote: Show quoted text
> I managed to fix this by changing line 70 in Test/Resub.pm from a ternary > operator to an if statement. I've no idea why it works though.
That seems strange. That particular ternary operator works on Perl 5.8.5, at least. I'll get a Linux machine with Perl 5.8.0 running so I can (hopefully) reproduce the bug and then fix it. Thanks for the bug report (and fix!).
Fixed in 1.03.