h = NULL;
}
-START_TEST(sane_kds_s2000w_net_start_cancel)
+void sane_kds_s2000w_net_start_cancel()
{
handler* h = init_handler();
h->read_info->cancel = 1;
SANE_Status status = _sane_kds_s2000w_net_start(h);
- ck_assert_int_eq(h->read_info->cancel, 0);
- ck_assert_int_eq(status, SANE_STATUS_CANCELLED);
+ assert_int_equal(h->read_info->cancel, 0);
+ assert_int_equal(status, SANE_STATUS_CANCELLED);
free_handler(h);
h = NULL;
}
-END_TEST
START_TEST(sane_kds_s2000w_net_get_parameter_cancel)
{
TCase* net_tests = tcase_create("kds_s2000w_net_tests");
tcase_add_test(net_tests, sane_kds_s2000w_net_get_parameter_cancel);
- tcase_add_test(net_tests, sane_kds_s2000w_net_start_cancel);
tcase_add_test(net_tests, sane_kds_s2000w_net_cancel);
tcase_add_test(net_tests, sane_kds_s2000w_net_open);
suite_add_tcase(net_tests_suite, net_tests);
void sane_kds_s2000w_net_control_get_option_twenty();
void sane_kds_s2000w_net_control_get_option_twentyone();
void sane_kds_s2000w_net_control_get_option_twentytwo();
+void sane_kds_s2000w_net_start_cancel();
Suite* net_tests();
#endif
\ No newline at end of file
cmocka_unit_test(sane_kds_s2000w_net_control_get_option_nineteen),
cmocka_unit_test(sane_kds_s2000w_net_control_get_option_twenty),
cmocka_unit_test(sane_kds_s2000w_net_control_get_option_twentyone),
- cmocka_unit_test(sane_kds_s2000w_net_control_get_option_twentytwo)
+ cmocka_unit_test(sane_kds_s2000w_net_control_get_option_twentytwo),
+ cmocka_unit_test(sane_kds_s2000w_net_start_cancel)
};
result = cmocka_run_group_tests(net_read_tests, NULL, NULL);