]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add call close twice test
authorBastian Dehn <hhaalo@arcor.de>
Fri, 31 Oct 2025 15:30:57 +0000 (16:30 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 31 Oct 2025 15:30:57 +0000 (16:30 +0100)
tests/kds_s2000w_net_tests.c

index f345e7826f9ae1863d1f8dbccbfef34fd6ebfa93..750bbfb52c214d5537d395b9232c6dcf50ba5c01 100644 (file)
@@ -387,6 +387,9 @@ void sane_kds_s2000w_net_close_test()
        expect_function_call(__wrap_kds_s2000w_client_close_session);
 
        sane_kds_s2000w_net_close(h);
+
+       h = NULL;
+       sane_kds_s2000w_net_close(h);
 }
 
 void sane_kds_s2000w_net_start_test(void** state)