Skip Menu |

This queue is for tickets about the PDF-Cairo CPAN distribution.

Report information
The Basics
Id: 129786
Status: open
Priority: 0/
Queue: PDF-Cairo

People
Owner: JGREELY [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: t/02-cairo.t fails (with old pdftocairo?)
On a debian/wheezy system I see the following test failure: ... # # Testing PDF::Cairo 1.04, Perl 5.024000, /opt/perl-5.24.0/bin/perl pdftocairo version 0.18.4 Copyright 2005-2011 The Poppler Developers - http://poppler.freedesktop.org Copyright 1996-2004 Glyph & Cog, LLC Usage: pdftocairo [options] <PDF-file> [<output-file>] -png : generate a PNG file ... (more usage snipped) ... -? : print usage information # Failed test 'reference page non-empty?' # at t/02-cairo.t line 194. # Failed test 'page non-empty?' # at t/02-cairo.t line 195. # Failed test 'page matches reference?' # at t/02-cairo.t line 196. # Looks like you failed 3 tests of 3. ... (etc) ... It almost looks like the pdftocairo version here is too old...
On Sun Jun 09 05:12:32 2019, SREZIC wrote: Show quoted text
> pdftocairo version 0.18.4 > It almost looks like the pdftocairo version here is too old...
Yes, it looks like they've significantly changed its functionality since February 2012. Looks like -antialias was added in 0.44.0, so I'll need to add a version check to make sure the tests are skipped.
On 2019-06-09 05:23:42, JGREELY wrote: Show quoted text
> On Sun Jun 09 05:12:32 2019, SREZIC wrote:
> > pdftocairo version 0.18.4 > > It almost looks like the pdftocairo version here is too old...
> > Yes, it looks like they've significantly changed its functionality > since February 2012. Looks like -antialias was added in 0.44.0, so > I'll need to add a version check to make sure the tests are skipped.
With 1.05 the tests are not skipped, instead there's a test failure: ... PERL_DL_NONLAZY=1 "/opt/perl-5.28.2/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # # Library versions linked against: # cairo: 1.8.8 # pango: 1.28.1 # freetype: 2.3.11 Bailout called. Further testing stopped: libcairo version must be >= 1.10.0 FAILED--Further testing stopped: libcairo version must be >= 1.10.0 make: *** [test_dynamic] Error 255 (make test exited with 512) CPAN::Reporter: Test result is 'fail', Bailed out of tests. CPAN::Reporter: preparing a CPAN Testers report for PDF-Cairo-1.05 CPAN::Reporter: sending test report with 'fail' via File ... If you want to avoid these unnecessary test failures (which also show up at CPAN Testers) it's probably better to check for the right library versions during configuration time (Makefile.PL or Build.PL) --- this would cause just a NA or UNKNOWN report, which is more appropriate.