[sane-devel] bug in test backend
Wed, 18 Dec 2002 00:27:06 +0100
I found a little bug in the test backend while doing some tests with xsan=
batch scan mode.
The sane standard chapter 4.4 / code flow
shows that sane_cancel shall not be called before each sane_start when a
sequence of images is scanned.
This is not possible with the test backend.
It should reset its SCANNING flag when sane_read comes to EOF.
After this it is allowed to call sane_start again.
But the test backend does not reset the SCANNING flag and
returns sane_start with an error.
It also does make sense to allow sane_control_option etc
after EOF although that is not explictly shown in the code flow example.