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

Ronny Chevalier chevalier.ronny at gmail.com
Thu Jun 19 10:32:05 PDT 2014


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]);
 }
 
-- 
2.0.0



More information about the systemd-devel mailing list