Lines Matching defs:expected

44  * @param expected expected use count
48 test_init (int expected)
58 if (initialized != expected)
60 printf ("ERROR: incorrect use count, expected %d, got %d!\n", expected,
72 * @param expected use count after exit call
76 test_exit (int expected)
82 if (initialized != expected)
84 printf ("ERROR: incorrect use count, expected %d, got %d!\n", expected,
95 * count all detected devices and check it against expected value
96 * @param expected detected count
100 count_detected (int expected)
112 if (num != expected)
114 printf ("ERROR: %d detected devices, expected %d!\n", num, expected);
155 int expected;
193 expected = device_number + 1;
205 if (device_number != expected || !found)
223 if (device_number != expected || !found)
241 if (device_number != expected || !found)
259 if (device_number != expected || !found)
292 * count all opended devices and check it against expected value
293 * @param expected use opened count
297 count_opened (int expected)
301 if (num != expected)
303 printf ("ERROR: %d opened devices, expected %d!\n", num, expected);
313 * @param expected number of devices to be opened
317 test_open_all (SANE_Int * dn, int expected)
342 expected--;
368 return count_opened (expected);
393 * @param expected number of devices to be closed
397 test_close_all (SANE_Int * dn, int expected)
403 for (i = 0; i < expected; i++)
419 * @param expected number of devices to be claimed
423 test_claim_all (SANE_Int * dn, int expected)
431 for (i = 0; i < expected; i++)
443 if (claimed != expected)
445 printf ("ERROR: expected %d claimed interfaces, got %d!\n", expected,
484 * @param expected number of devices to be claimed
488 test_release_all (SANE_Int * dn, int expected)
496 for (i = 0; i < expected; i++)
510 if (released != expected)
512 printf ("ERROR: expected %d released interfaces, got %d!\n", expected,
550 * @param expected count
620 * @param expected count
742 * expected device name during attach