<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 06/03/2013 22:22, Stef wrote:<br>
    </div>
    <blockquote cite="mid:5137B3A8.5080201@free.fr" type="cite">On
      06/03/2013 22:21, Stef wrote:
      <br>
      <blockquote type="cite">Hello,
        <br>
        <br>
            here is a patch that adds a sanei_usb_test program in a new
        testsuite/sanei directory. This program tests these sanei_usb
        functions:
        <br>
            - sanei_usb_init()
        <br>
            - sanei_usb_open()
        <br>
            - sanei_usb_get_vendor_product_byname()
        <br>
            - sanei_usb_close()
        <br>
            - sanei_usb_exit()
        <br>
        <br>
        It is compiled and run only when 'make tests' is ran in the new
        subdirectory. It needs at least one USB scanner plugged. I'm
        using it to check the changes I am currently doing in
        sanei_usb.c .
        <br>
            In the long term, I may even add use of umockdev (linux
        only) to tests more things without need for actual scanner
        devices.
        <br>
        <br>
        Regards,
        <br>
            Stef
        <br>
        <br>
      </blockquote>
          Oops,
      <br>
      <br>
          with attachment this time!
      <br>
      <br>
      regards,
      <br>
          Stef
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
        Hello,<br>
    <br>
        I really think this test program should be added, it doesn't add
    extra dependency and helps testing a lot. For instance while adding
    a test case for the problem Olaf spotted (not setting usb context to
    null), it allowed me to find I also forgot to reset device_number to
    0 in sane_exit().<br>
    <br>
    Regards,<br>
        Stef<br>
  </body>
</html>