more poll_term tests

This commit is contained in:
tezc 2021-04-15 00:20:36 +03:00
parent 7af766e1d5
commit d1a7e421ad

View File

@ -1296,6 +1296,13 @@ void sock_fail_test2()
void sock_fail_test3()
{
struct sc_sock client;
struct sc_sock_poll poll;
sc_sock_poll_init(&poll);
fail_close = true;
assert(sc_sock_poll_term(&poll) == -1);
fail_close = false;
assert(sc_sock_poll_term(&poll) == 0);
sc_sock_init(&client, 0, false, SC_SOCK_INET);
fail_send = 1;
@ -1402,6 +1409,8 @@ void sock_fail_test3()
assert(sc_sock_notify_systemd("test") == 0);
success_sendmsg = 0;
unsetenv("NOTIFY_SOCKET");
}
#else