Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/icmp Allow a valid sendto .... duh



details:   https://anonhg.NetBSD.org/src/rev/7739c1838e8a
branches:  trunk
changeset: 360698:7739c1838e8a
user:      roy <roy%NetBSD.org@localhost>
date:      Sat Mar 24 15:51:57 2018 +0000

description:
Allow a valid sendto .... duh

diffstat:

 tests/net/icmp/t_ping.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 75e3dc370bf8 -r 7739c1838e8a tests/net/icmp/t_ping.c
--- a/tests/net/icmp/t_ping.c   Sat Mar 24 08:08:19 2018 +0000
+++ b/tests/net/icmp/t_ping.c   Sat Mar 24 15:51:57 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ping.c,v 1.21 2018/03/24 00:06:32 kamil Exp $        */
+/*     $NetBSD: t_ping.c,v 1.22 2018/03/24 15:51:57 roy Exp $  */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: t_ping.c,v 1.21 2018/03/24 00:06:32 kamil Exp $");
+__RCSID("$NetBSD: t_ping.c,v 1.22 2018/03/24 15:51:57 roy Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -420,6 +420,8 @@
 
                        error = rump_sys_sendto(s, data, frag, 0,
                            (struct sockaddr *)&dst, sizeof(dst));
+                       if (error == sizeof(dst))
+                               continue;
                        if (error == -1 && errno == ENOBUFS)
                                continue;
                        atf_tc_fail_errno("sendto failed");



Home | Main Index | Thread Index | Old Index