Skip Menu |

This queue is for tickets about the Image-Sane CPAN distribution.

Report information
The Basics
Id: 130933
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Image-Sane

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

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



Subject: t/81_scanimage-perl.t test fails with sane-backends-1.0.28
t/81_scanimage-perl.t test fails after upgrading sane-backends from 1.0.27 to 1.0.28 like this: t/2_exit.t ............. ok Output format is not set, using pnm as a default. # Failed test '--device=test --test 2>&1' # at t/81_scanimage-perl.t line 41. # got: 'scanimage: scanning image of size 157x196 pixels at 8 bits/pixel # scanimage: acquiring gray frame, 8 bits/sample # scanimage: reading one scanline, 157 bytes... PASS # scanimage: reading one byte... PASS # scanimage: stepped read, 2 bytes... PASS # scanimage: stepped read, 4 bytes... PASS # scanimage: stepped read, 8 bytes... PASS # scanimage: stepped read, 16 bytes... PASS # scanimage: stepped read, 32 bytes... PASS # scanimage: stepped read, 64 bytes... PASS # scanimage: stepped read, 128 bytes... PASS # scanimage: stepped read, 256 bytes... PASS # scanimage: stepped read, 255 bytes... PASS # scanimage: stepped read, 127 bytes... PASS # scanimage: stepped read, 63 bytes... PASS # scanimage: stepped read, 31 bytes... PASS # scanimage: stepped read, 15 bytes... PASS # scanimage: stepped read, 7 bytes... PASS # scanimage: stepped read, 3 bytes... PASS # ' # expected: 'Output format is not set, using pnm as a default. # scanimage: scanning image of size 157x196 pixels at 8 bits/pixel # scanimage: acquiring gray frame, 8 bits/sample # scanimage: reading one scanline, 157 bytes... PASS # scanimage: reading one byte... PASS # scanimage: stepped read, 2 bytes... PASS # scanimage: stepped read, 4 bytes... PASS # scanimage: stepped read, 8 bytes... PASS # scanimage: stepped read, 16 bytes... PASS # scanimage: stepped read, 32 bytes... PASS # scanimage: stepped read, 64 bytes... PASS # scanimage: stepped read, 128 bytes... PASS # scanimage: stepped read, 256 bytes... PASS # scanimage: stepped read, 255 bytes... PASS # scanimage: stepped read, 127 bytes... PASS # scanimage: stepped read, 63 bytes... PASS # scanimage: stepped read, 31 bytes... PASS # scanimage: stepped read, 15 bytes... PASS # scanimage: stepped read, 7 bytes... PASS # scanimage: stepped read, 3 bytes... PASS # ' The reason is that scanimage tool started to warn about defaulting to PNM format: $ scanimage --device=test --test Output format is not set, using pnm as a default. scanimage: scanning image of size 157x196 pixels at 8 bits/pixel scanimage: acquiring gray frame, 8 bits/sample scanimage: reading one scanline, 157 bytes... PASS scanimage: reading one byte... PASS scanimage: stepped read, 2 bytes... PASS scanimage: stepped read, 4 bytes... PASS scanimage: stepped read, 8 bytes... PASS scanimage: stepped read, 16 bytes... PASS scanimage: stepped read, 32 bytes... PASS scanimage: stepped read, 64 bytes... PASS scanimage: stepped read, 128 bytes... PASS scanimage: stepped read, 256 bytes... PASS scanimage: stepped read, 255 bytes... PASS scanimage: stepped read, 127 bytes... PASS scanimage: stepped read, 63 bytes... PASS scanimage: stepped read, 31 bytes... PASS scanimage: stepped read, 15 bytes... PASS scanimage: stepped read, 7 bytes... PASS scanimage: stepped read, 3 bytes... PASS Specifying the format helps: $ scanimage --device=test --format=pnm --test scanimage: scanning image of size 157x196 pixels at 8 bits/pixel scanimage: acquiring gray frame, 8 bits/sample scanimage: reading one scanline, 157 bytes... PASS scanimage: reading one byte... PASS scanimage: stepped read, 2 bytes... PASS scanimage: stepped read, 4 bytes... PASS scanimage: stepped read, 8 bytes... PASS scanimage: stepped read, 16 bytes... PASS scanimage: stepped read, 32 bytes... PASS scanimage: stepped read, 64 bytes... PASS scanimage: stepped read, 128 bytes... PASS scanimage: stepped read, 256 bytes... PASS scanimage: stepped read, 255 bytes... PASS scanimage: stepped read, 127 bytes... PASS scanimage: stepped read, 63 bytes... PASS scanimage: stepped read, 31 bytes... PASS scanimage: stepped read, 15 bytes... PASS scanimage: stepped read, 7 bytes... PASS scanimage: stepped read, 3 bytes... PASS Also it seems that the test has misplaced arguments at is_deeply() call because the error message has reversed "got" and "expected" labels.
Thanks for the report. This should be fixed in v5, which I have just uploaded.