]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-istream-unix - Use i_stream_set_blocking()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 4 Oct 2017 17:14:05 +0000 (20:14 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Thu, 5 Oct 2017 08:20:49 +0000 (11:20 +0300)
src/lib/test-istream-unix.c

index 4a655b8f30c3f12f564257bf0719704413bc8b9d..30ccd09aa58c3cb6440c9dd8a63c7ffb1a995ee2 100644 (file)
@@ -71,11 +71,11 @@ static void test_istream_unix_server(int fd)
        /* 2) fd was sent but we won't get it */
        test_server_read_nofd(input, 2);
        /* we still shouldn't have the fd */
-       fd_set_nonblock(fd, TRUE);
+       i_stream_set_blocking(input, FALSE);
        i_stream_unix_set_read_fd(input);
        test_assert(i_stream_read_more(input, &data, &size) == 0);
        test_assert(i_stream_unix_get_read_fd(input) == -1);
-       fd_set_nonblock(fd, FALSE);
+       i_stream_set_blocking(input, TRUE);
        write_one(fd);
 
        /* 3) the previous fd should be lost now */