Skip Menu |

This queue is for tickets about the Cairo CPAN distribution.

Report information
The Basics
Id: 33871
Status: resolved
Priority: 0/
Queue: Cairo

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

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



Subject: CairoSurface.t, test 45 fails on Win32
Hi, I'm running Windows Vista, perl-5.10.0, pkg-config-0.23, cairo-1.4.14, and 'dmake test' spits out the following re CairoSurface.t: t/CairoSurface....NOK 45/64# Failed test 'The object isa Cairo::PsSurface' # at t/CairoSurface.t line 220. # The object isn't a 'Cairo::PsSurface' it's a 'Cairo::ImageSurface' Can't locate object method "set_size" via package "Cairo::ImageSurface" at t/Cai roSurface.t line 227. # Looks like you planned 64 tests but only ran 46. # Looks like you failed 1 test of 46 run. # Looks like your test died just after 46. t/CairoSurface....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 45, 47-64 All other test scripts pass. More verbose output re the failing test script is as follows: C:\_32\comp\Cairo-1.045>perl -Mblib t\CairoSurface.t 1..64 ok 1 - The object isa Cairo::ImageSurface ok 2 - The object isa Cairo::Surface ok 3 ok 4 ok 5 ok 6 ok 7 - The object isa Cairo::ImageSurface ok 8 - The object isa Cairo::Surface ok 9 ok 10 ok 11 ok 12 - Skipping get_data test; unknown endianness ok 13 - The object isa Cairo::ImageSurface ok 14 - The object isa Cairo::Surface ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 - The object isa Cairo::FontOptions ok 21 ok 22 ok 23 ok 24 ok 25 ok 26 ok 27 ok 28 - The object isa Cairo::ImageSurface ok 29 - The object isa Cairo::Surface ok 30 - The object isa Cairo::ImageSurface ok 31 - The object isa Cairo::Surface ok 32 ok 33 ok 34 - The object isa Cairo::ImageSurface ok 35 - The object isa Cairo::Surface ok 36 ok 37 - The object isa Cairo::PdfSurface ok 38 - The object isa Cairo::Surface ok 39 - The object isa Cairo::Surface ok 40 - The object isa Cairo::ImageSurface # TODO create_similar returns surface s whose type is not predictable ok 41 ok 42 ok 43 - The object isa Cairo::PdfSurface ok 44 - The object isa Cairo::Surface not ok 45 - The object isa Cairo::PsSurface # Failed test 'The object isa Cairo::PsSurface' # at t\CairoSurface.t line 220. # The object isn't a 'Cairo::PsSurface' it's a 'Cairo::ImageSurface' ok 46 - The object isa Cairo::Surface Can't locate object method "set_size" via package "Cairo::ImageSurface" at t\Cai roSurface.t line 227. # Looks like you planned 64 tests but only ran 46. # Looks like you failed 1 test of 46 run. # Looks like your test died just after 46. Apparently, the failure to locate method "set_size" prevents tests 47 to 64 from being run. Cheers, Rob
Sorry for the late reply. On Fri Mar 07 03:30:07 2008, SISYPHUS wrote: Show quoted text
> t/CairoSurface....NOK 45/64# Failed test 'The object isa > Cairo::PsSurface' > # at t/CairoSurface.t line 220. > # The object isn't a 'Cairo::PsSurface' it's a 'Cairo::ImageSurface' > Can't locate object method "set_size" via package
"Cairo::ImageSurface" at t/CairoSurface.t line 227. This is pretty weird. Apparently, cairo_ps_surface_create is returning an image surface. Anyway, I just committed a change that should handle this case gracefully.