[systemd-devel] [PATCH] tests: fix test-icmp6-rs

Lennart Poettering lennart at poettering.net
Thu Jun 19 15:32:23 PDT 2014


On Thu, 19.06.14 19:32, Ronny Chevalier (chevalier.ronny at gmail.com) wrote:

Looks good!

Applied! Thanks!

> Don't close the fd given to sd-icmp6-nd, since it will be aynschonously closed
> by sd_icmp6_nd_unref
> ---
>  src/libsystemd-network/test-icmp6-rs.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/libsystemd-network/test-icmp6-rs.c b/src/libsystemd-network/test-icmp6-rs.c
> index 86e02cc..cd5c476 100644
> --- a/src/libsystemd-network/test-icmp6-rs.c
> +++ b/src/libsystemd-network/test-icmp6-rs.c
> @@ -136,7 +136,6 @@ static void test_rs(sd_event *e) {
>          nd = sd_icmp6_nd_unref(nd);
>          assert(!nd);
>  
> -        close(test_fd[0]);
>          close(test_fd[1]);
>  }
>  


Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list