Tests fail with sane-backends 1.0.28
Brought to you by:
ra28145
After upgading sane-backends from 1.0.27 to 1.0.28 two tests fail:
$ xvfb-run -d perl -Ilib t/0624_Dialog_Scan_CLI.t
1..5
ok 1 - use Gscan2pdf::Dialog::Scan::CLI;
ok 2 - Created dialog
ok 3 - An object of class 'Gscan2pdf::Dialog::Scan::CLI' isa 'Gscan2pdf::Dialog::Scan::CLI'
not ok 4 - error-free scan despite illegal option
# Failed test 'error-free scan despite illegal option'
# at t/0624_Dialog_Scan_CLI.t line 100.
# Looks like you planned 5 tests but ran 4.
# Looks like you failed 1 test of 4 run.
$ xvfb-run -d perl -Ilib t/081_Frontend_CLI.t 1..48
[...]
ok 43 - scanimage starts
not ok 44 - error callback called: Unknown message: Output format is not set, using pnm as a default.
# Failed test 'error callback called: Unknown message: Output format is not set, using pnm as a default.'
# at t/081_Frontend_CLI.t line 381.
ok 45 - scanimage scans
I believe this the same issue as reported in https://rt.cpan.org/Ticket/Display.html?id=130933.
Does the attached patch fix things?
That makes another test fail. Try this.
It works me. I tested it on gscan2pdf-2.5.6 because git master needs new dependencies.
Thanks for the confirmation.