* something to read and the socket was closed.
*/
case 17:
- n = read(state->fd[0], &byte, 1);
close(state->fd[0]);
state->fd[0] = -1;
TEVENT_FD_WANTERROR(state->fde);
* socket is closed.
*/
case 23:
- //n = read(state->fd[0], &byte, 1);
+ n = read(state->fd[0], &byte, 1);
//TODOtorture_assert_int_equal_goto
TEVENT_FD_WANTERROR(state->fde);
* read the EOF from the socket.
*/
case 29:
- //n = read(state->fd[0], &byte, 1);
+ n = read(state->fd[0], &byte, 1);
//TODOtorture_assert_int_equal_goto
TEVENT_FD_WANTERROR(state->fde);
return true;
}
-#include "lib/util/util.h"
+
struct torture_suite *torture_local_event(TALLOC_CTX *mem_ctx)
{
struct torture_suite *suite = torture_suite_create(mem_ctx, "event");
const char **list = event_backend_list(suite);
int i;
- list = str_list_make(suite, "select", NULL);
-
for (i=0;list && list[i];i++) {
-#if 0
torture_suite_add_simple_tcase_const(suite, list[i],
test_event_context,
(const void *)list[i]);
-#endif
torture_suite_add_simple_tcase_const(suite, list[i],
test_fde_flags,
(const void *)list[i]);