Skip Menu |

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 39858
Status: resolved
Priority: 0/
Queue: DBIx-Class

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

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



Subject: t/61findnot.t has undeclared version dependency
Two tests in t/61findnot.t failed to run on one of my machines, producing the output below: t/61findnot........................................ok 1/20 # Failed test 'Non-unique find generated a cursor inexhaustion warning' t/61findnot........................................NOK 19/20# at t/61findnot.t line 57. # found warning: Test::Warn::warnings_are(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single at t/61findnot.t line 57 # expected to find warning: DBIx::Class::ResultSet::find(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single # Failed test 'Non-unique find generated a cursor inexhaustion warning' # at t/61findnot.t line 63. # found warning: Test::Warn::warnings_are(): Query returned more than one row at t/61findnot.t line 63 # expected to find warning: DBIx::Class::ResultSet::find(): Query returned more than one row t/61findnot........................................NOK 20/20# Looks like you failed 2 tests of 20. t/61findnot........................................dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 19-20 Failed 2/20 tests, 90.00% okay Upon investigation, it turns out that the test depends on a more recent version of Test::Warn than is installed on that machine. Version 0.08 is installed, upgrading to the current 0.11 fixes the problem. I don't know exactly which version is required. I've marked the bug as important because I believe all install test failures are important since they lead potential new users to form a bad impression of the distribution. Cheers, Dave
Subject: Re: [rt.cpan.org #39858] t/61findnot.t has undeclared version dependency
Date: Tue, 7 Oct 2008 18:37:38 +0100
To: Dave Howorth via RT <bug-DBIx-Class [...] rt.cpan.org>
From: Matt S Trout <mst [...] shadowcat.co.uk>
On Tue, Oct 07, 2008 at 06:55:10AM -0400, Dave Howorth via RT wrote: Show quoted text
> Tue Oct 07 06:55:06 2008: Request 39858 was acted upon. > Transaction: Ticket created by DJH > Queue: DBIx-Class > Subject: t/61findnot.t has undeclared version dependency > Broken in: 0.08099_04 > Severity: Important > Owner: Nobody > Requestors: djh@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=39858 > > > > Two tests in t/61findnot.t failed to run on one of my machines, > producing the output below: > > t/61findnot........................................ok 1/20 > # Failed test 'Non-unique find generated a cursor inexhaustion warning' > t/61findnot........................................NOK 19/20# at > t/61findnot.t line 57. > # found warning: Test::Warn::warnings_are(): Query returned more than > one row. SQL that returns multiple rows is DEPRECATED for ->find and > ->single at t/61findnot.t line 57 > # expected to find warning: DBIx::Class::ResultSet::find(): Query > returned more than one row. SQL that returns multiple rows is > DEPRECATED for ->find and ->single > > # Failed test 'Non-unique find generated a cursor inexhaustion warning' > # at t/61findnot.t line 63. > # found warning: Test::Warn::warnings_are(): Query returned more than > one row at t/61findnot.t line 63 > # expected to find warning: DBIx::Class::ResultSet::find(): Query > returned more than one row > t/61findnot........................................NOK 20/20# Looks like > you failed 2 tests of 20. > t/61findnot........................................dubious > Test returned status 2 (wstat 512, 0x200) > DIED. FAILED tests 19-20 > Failed 2/20 tests, 90.00% okay > > > Upon investigation, it turns out that the test depends on a more recent > version of Test::Warn than is installed on that machine. Version 0.08 is > installed, upgrading to the current 0.11 fixes the problem. I don't know > exactly which version is required.
It's not an undeclared version dependency, the Makefile.PL declares 0.08. Quite why 0.08 doesn't work on your machine but 0.11 does I'm unsure but I've updated the Makefile.PL to reflect 0.11. Please in future send such one-line changes to the list; there was no real need to open an RT ticket for s/0.08/0.11/ && svk commit :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
Patch committed to trunk at r4906.