[1.15.2] After update, perl-Cairo fails to pass test suite
Submitted by Dominique Leuenberger
Assigned to Chris Wilson @ickle
Description
After updating cairo to version 1.15.2 (from 1.14.4) perl-Cairo no longer passes its test suite.
Now this can of course mean perl-Cairo does something wrong, relies on old (wrong?) behavior of cairo or it might expose a bug / unintentional change in cairo.
That's what this bug is about - to find out which is true
Cairo's test suite does this:
my $surf = Cairo::RecordingSurface->create (
'color',
{x=>10, y=>10, width=>5, height=>5});
isa_ok ($surf, 'Cairo::RecordingSurface');
isa_ok ($surf, 'Cairo::Surface');
# Test that the extents rectangle was marshalled correctly.
my $cr = Cairo::Context->create ($surf);
$cr->move_to (0, 0);
$cr->line_to (30, 30);
$cr->paint;
is_deeply ([$surf->ink_extents], [10, 10, 5, 5]);
with cairo 1.15.2, this fails with an error like:
[ 106s] # Failed test at t/CairoSurface.t line 399. [ 106s] # Structures begin differing at: [ 106s] # $got->[0] = '0' [ 106s] # $expected->[0] = '10' [ 106s] # Looks like you failed 1 test of 88. [ 106s] t/CairoSurface.t ..